Page 1 of 1
Customizing Modal Dialog Boxes
Posted: Tue Jul 28, 2009 1:38 am
by Yossarian1508
I've created a stack and appear to have inadvertently customized the answer dialog boxes. When I export as a standalone application the dialog boxes are using the stack's background image which I'd prefer they didn't.
I'm not sure if this is the cause of it but here's the command I run on openStack:
set the windowshape of stack "negotiations" to the id of image "Shape2"
How do I reset their appearance to the default gray?
Thanks for any tips.
Posted: Tue Jul 28, 2009 2:24 am
by keyless
set the background of stack answer to the gray in message box. I usually set it to white actually because gray is not the default gray, but you could find out the color code for th default grey.
Code: Select all
set background of stack "answer" to white
HTH
Posted: Tue Jul 28, 2009 7:26 am
by Yossarian1508
Thanks for the reply.
So does that mean the "answer" dialogs are part of a default stack called "answer"?
Unfortunately when I run this script in the message box I get the following error:
Script compile error:
Error description: Properties: token is not a property
What am I missing?
Posted: Tue Jul 28, 2009 1:46 pm
by shadowslash
Hi Yossarian1508,
Try not to change the background of your program's
stack, try changing the program's
card(s) instead. That way, the revAnswerDialog stacks won't inherit the background pattern you're using on your stacks.
Tell me if this doesn't work.

Posted: Wed Jul 29, 2009 7:53 am
by Yossarian1508
That's done it.
I ran this script on openStack:
set the backgroundColor of stack "negotiations" to "white"
and then this script on openCard to set the background of the cards:
set the backgroundPattern of card "FTS" to the id of image "Shape2"
Thanks for the help.
Posted: Thu Jul 30, 2009 12:15 pm
by shadowslash
Yossarian1508 wrote:That's done it.
I ran this script on openStack:
set the backgroundColor of stack "negotiations" to "white"
and then this script on openCard to set the background of the cards:
set the backgroundPattern of card "FTS" to the id of image "Shape2"
Thanks for the help.
Glad to be of help.

Posted: Tue Aug 04, 2009 4:30 am
by keyless
The code I gave was incorrect, that should have been backgroundColor not just background as I had it and stack name was wrong too. Sorry, had been awhile since I did that. Looks like you found another way anyhow.
Code: Select all
set the backgroundColor of stack "Answer Dialog" to white
This should work.