Hello everyone on the list,

here is a little pixvu-app that i wrote for myself,
because i needed it but mainly because it is so much FUN to
make stuff like this with MetaCard :)

Maybe this is of some use fore some of you,
maybe someone comes up with a better or smarter solution
or a hint on how to optimize one handler or another,
maybe it will rain tomorrow...

Feel free to answer on the list or to me privately.


Basic concept:
1. A stack with one single card and an empty image object on it.
2. A substack of that namely stack (palette works best) with one single card
and
   a scrolling (list)field and one button (name it: Import folder i.e.) on
it.
   These two stack should be opened and closed together to avoid error
messages
   in case the CLEVER user clicks in the field AFTER closing the pix-stack.
   They ARE that CLEVER, i am telling you!

Button-script:

on mouseUp
  answer file "Bitte waehlen Sie eine Datei im gew�nschten Verzeichnis:"
  --zis is tscherman :) for
  --Please choose one file in the desired directory:
  --We have to do it this way until there is a "askfolder"-function in MC
  if the result is not "Cancel" then
    set the itemdel to "/"
    delete last item of it    --it contains the path to the file
    put it into field 2       --invisible field to store the folderpath
    set the directory to it
    put the files into liste
    filter liste with "*.gif"
    put the files into liste2
    filter liste2 with "*.jpg"
    put liste & RETURN & liste2 into field 1    --the (list)field
  end if
end mouseUp

NO need to reset the itemdel, folks, because this is a local property!!!

Since the filter seems to be a simple (sorry...;-) textfilter,
this only works on the MAC, if the files really have the
proper DOS-Extension. It does not work with filetype or something or
i am missing something???
I dont want to filter the open-dialog, this works with "type".
I think you get the picture...


(List)field-script:
on mouseUp
  set the filename of image 1 of stack "pixvu" to the selectedtext
end mouseUp

on arrowkey
  send "mouseup" to me in 2 ticks    --almost too much time for the
  pass arrowkey                      --flashy MC-interpreter :-)
end arrowkey

I was wondering how you could use the arrowkeys to navigate through the
pictures and ended up with these 2 lines.
It works perfectly!


To polish this up, write this little stack-script
for the stack with the image on it:

on resizeStack
  set the loc of image 1 to the loc of cd 1
end resizeStack

Save and view pictures...;-)


This is a long post, i know, but i think it is much better
than posting a really long answer to a really long post WITH
the original post INCLUDED.
Knowwhatimean? :)

Regards from germany

Klaus

[EMAIL PROTECTED]


P.S. PRINTING, IMO, seems to be either:

a tricky task to implement in an authoring-application like DIR/SC/HC/MC
(They all can print card(s) or frames/stages, more can only be achieved
with an external or X-tra, some for free, some not for real bucks)

or:

really the last item in the to-do-list of all the above mentioned
software-companies.

Anyway, have a nice day.


Reply via email to