how to place a dialog window
Chipp Walters
chipp at chipp.com
Fri Nov 10 22:47:04 EST 2006
OK Wilhelm.
How about this then,
on mouseUp
put the short name of the topStack into tStack
go inv stack "answer Dialog"
set the loc of stack "answer Dialog" to 200,200
show stack "Answer Dialog"
answer "Choose a color" with "red" or "green" or "blue"
set the defaultStack to tStack
set the backcolor of fld 1 to it
end mouseUp
That should solve your problem. Still quick and dirty. Oh, what if your
topStack is a palette, or even modal/non-modal??? Then don't use it, or hack
it further to accomodate.
I agree, the preferred way is to use one's own answer/ask dialogs, but
sometimes (as in when you are creating plugins for others to use inside
THEIR versions of Rev), you can't always count on your hacked versions being
'in play.'
More information about the use-livecode
mailing list