default ask and answer dialogs problem

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jrioux
Posts: 50
Joined: Fri May 04, 2007 4:02 pm

default ask and answer dialogs problem

Post by jrioux » Wed Aug 06, 2008 9:12 pm

I have set up a stack with its own windowShape and backgroundPattern, but when I call up ask or answer dialogs (standalone Mac OS X) within the stack, they appear with the stack's backgroundPattern and not the default Mac pattern. I assume these dialogs inherit the backgroundPattern of the stack they're in? If so, how can I 'disinherit' them, so they appear as they normally would?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Thu Aug 07, 2008 9:12 am

Dear jrioux,

You will have to set the background colour or pattern of the dialog stacks to the desired value.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

jrioux
Posts: 50
Joined: Fri May 04, 2007 4:02 pm

Post by jrioux » Tue Aug 12, 2008 3:58 pm

Mark,

Thanks for the reply. Any idea what that value is? There's a pattern in Rev's standard set that's horizontal pin stripes, but it's not the same.

Jean

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Post by mwieder » Tue Aug 12, 2008 4:53 pm

I filed this bug in May as #6488. It's still, of course, listed as "unconfirmed". It's annoying that this works fine in the IDE but then the behavior changes when you build a standalone. AFAIK there's no workaround without building your own "standard" dialogs for ask and answer. And it appears to be localized to OSX - Windows doesn't have this problem.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Tue Aug 12, 2008 5:12 pm

Hi,

What about going invisible to the Ask Dialog and Answer Dialog stacks and setting their mainstacks to themselves, before using the ask and answer commands? Just an idea...

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply