Page 1 of 1

Problems with Drawer Menu

Posted: Thu Jul 07, 2016 9:20 am
by karimariesk
Hello! I'm new to livecode, im trying to call a stack to act as a drawer menu for other stack. i do this with:

Code: Select all

 drawer stack "DrawerMenu" at left of stack "Eventos" aligned to left
that line is inside a swipe detector.
that works perfectly, but i have an issue. i want part of the backgroud stack to be shown, but have no idea how.
thanks in advance!

Re: Problems with Drawer Menu

Posted: Thu Jul 07, 2016 10:11 am
by Klaus
Hi karimariesk,

1. welcome to the forum! :D

2. This is the iOS forum, are you takling about an iOS app/stack?
I ask because:
a. the "drawer" command is actually only available on desktop machines
and only on a Mac they display REAL drawers, on Win and Linux the target
stacks will be opened as PALETTE windows.
b. on mobile there can only be ONE stack open/visible at a time.

So I'm a bit puzzled! :shock:


Best

Klaus

Re: Problems with Drawer Menu

Posted: Thu Jul 07, 2016 10:33 pm
by Simon
This sounds like;
http://forums.livecode.com/phpBB2/viewt ... 082#p92082
nice sliding panels.

Simon

Re: Problems with Drawer Menu

Posted: Fri Jul 08, 2016 3:08 am
by karimariesk
Hi! thanks for the reply. Yes it's for IOS. so i cant use the drawer command? didnt know that.
The link seems promising! i'll try it been fighting with this for 2-3 days already :P

Re: Problems with Drawer Menu

Posted: Fri Jul 08, 2016 5:47 am
by Simon
Hi Kari,
In the dictionary it always notes which platform each command works for.

Drawer
Platforms desktop, server, web

Simon

Re: Problems with Drawer Menu

Posted: Fri Jul 08, 2016 10:29 am
by Klaus
karimariesk wrote:i'll try it been fighting with this for 2-3 days already :P
No comment! 8)

What Simon said, the dictionary is not your enemy, au contraire, mon ami! :D

Re: Problems with Drawer Menu

Posted: Fri Jul 08, 2016 4:44 pm
by LiveCode_Panos
Hi all,

Just to add that drawer stacks on OS X are not supported since we moved to Cocoa (in LiveCode 6.7.0). In other words, the "drawer" command will work only with LiveCode versions < 6.7.0

Best,
Panos
--

Re: Problems with Drawer Menu

Posted: Fri Jul 08, 2016 6:39 pm
by Klaus
AHA! So "drawers" are a Carbon thing!?
Didn't know that, thank you!

Re: Problems with Drawer Menu

Posted: Fri Jul 08, 2016 7:08 pm
by FourthWorld
I think Apple deprecated Drawers about the time they dropped Metal backgrounds, but I can't recall which version that was.

Re: Problems with Drawer Menu

Posted: Fri Feb 02, 2024 2:40 pm
by richmond62
Indeed: But LiveCode left the information in the Dictionary so we could waste a lot of time chasing a phantom.

Re: Problems with Drawer Menu

Posted: Fri Feb 02, 2024 3:03 pm
by Klaus
richmond62 wrote:
Fri Feb 02, 2024 2:40 pm
Indeed: But LiveCode left the information in the Dictionary so we could waste a lot of time chasing a phantom.
Did you report that bug? 8)

Re: Problems with Drawer Menu

Posted: Fri Feb 02, 2024 5:43 pm
by richmond62
No, because someone asked me to explain it to them for the first time today: I have never used it.

In fact it is not a bug, it has got to do with when Apple started using Cocoa.

LiveCode should have either removed 'drawer' from the Dictionary, or flagged as only working on versions before 6.7.0.

Re: Problems with Drawer Menu

Posted: Fri Feb 02, 2024 7:07 pm
by richmond62
What is very interesting is the claim:
Just to add that drawer stacks on OS X are not supported since we moved to Cocoa (in LiveCode 6.7.0). In other words, the "drawer" command will work only with LiveCode versions < 6.7.0
which does not explain why LiveCode cannot do this on Xubuntu 23.10 despite the Dictionary's claim that this is a cross-platform feature.

Re: Problems with Drawer Menu

Posted: Sat Feb 03, 2024 3:07 am
by FourthWorld
richmond62 wrote:
Fri Feb 02, 2024 7:07 pm
What is very interesting is the claim:
Just to add that drawer stacks on OS X are not supported since we moved to Cocoa (in LiveCode 6.7.0). In other words, the "drawer" command will work only with LiveCode versions < 6.7.0
which does not explain why LiveCode cannot do this on Xubuntu 23.10 despite the Dictionary's claim that this is a cross-platform feature.
The syntax is handed on each platform in a way that conforms to the user interface expectations of that platform.

From the Dictionary entry:
Cross-platform note: On Mac OS, Unix, and Windows systems, drawers are not supported, so the drawer command opens the stack as a palette instead. The palette uses the current rectangle of the stack and does not resize or move it.