Drawer problems on OS X

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
massung
Posts: 93
Joined: Thu Mar 19, 2009 5:34 pm

Drawer problems on OS X

Post by massung » Sat Mar 21, 2009 2:28 am

I apologies if this is somewhere on these forums, but I haven't found it, and I've tried everything I can think of. ;)

I wanted to try out the drawer command, and everything is working perfectly. However, after doing my little test, I can't seem to get back to a mode where I can edit my substack any more. I've tried closing the stack, setting type mode back to 1 (edit stack), and many other things. But, all to no avail. It's still just a drawer off my main stack window and I can't even edit the controls inside it.

Any help is much appreciated.

Thanks!

Jeff M.

Obleo
Posts: 174
Joined: Mon Apr 10, 2006 10:35 pm
Contact:

Post by Obleo » Sat Mar 21, 2009 3:43 am

You can open the application browser (found in tools menu), and double click on the stack that is the drawer. That should open it back as a simple stack.

massung
Posts: 93
Joined: Thu Mar 19, 2009 5:34 pm

Post by massung » Sat Mar 21, 2009 4:25 am

A thousand thanks!

Jeff M.

massung
Posts: 93
Joined: Thu Mar 19, 2009 5:34 pm

Post by massung » Sat Mar 21, 2009 4:25 pm

One more problem I'm having with drawers. If I resize the parent stack while the drawer stack is closed (say, making it bigger), then I open the drawer, the drawer size isn't automatically adjusted to be as large as the parent stack.

Setting the height of the drawer card or stack doesn't work before I open it. Is this just a bug or is there something I can do to fix this with the geometry properties or something else?

Thanks again!

Jeff M.

Obleo
Posts: 174
Joined: Mon Apr 10, 2006 10:35 pm
Contact:

Post by Obleo » Mon Mar 23, 2009 7:58 am

You could do something like this, to solve such an issue.

Basically get the card height of the parent (or main) stack and set it to the size of the drawer stack when you send the message to open the drawer.

Code: Select all

put the height of card "card_name_of_parent_stack" of stack "Parent_Stack_name" into tTargetH
set the height of stack "Drawer_Stack_name" to tTargetH
drawer stack "Drawer_Stack_name" at right of stack "Parent_Stack_name"
Hope this helps,

Happy Scripting :)

Post Reply