Making big stacks take the top-bar's place
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Making big stacks take the top-bar's place
Hello!
I've been making apps and games in LiveCode since 2019.
Since the very first day, I've noticed that when I tried to create stacks that are almost fullscreen,
the top-bar would be hidden, and it made me re-open the top-bar every 10 seconds.
Therefore, I haven't made 'almost-fullscreen' apps or games since then.
But, I've now decided that I do want to make one.
Is there any way in the settings or something to make it not disappear?
Thanks!
I've been making apps and games in LiveCode since 2019.
Since the very first day, I've noticed that when I tried to create stacks that are almost fullscreen,
the top-bar would be hidden, and it made me re-open the top-bar every 10 seconds.
Therefore, I haven't made 'almost-fullscreen' apps or games since then.
But, I've now decided that I do want to make one.
Is there any way in the settings or something to make it not disappear?
Thanks!
Re: Making big stacks take the top-bar's place
Hi FESEFW,
I presume you are on a Mac, right?
You can check the screenrect and also -> the working screenrect
The latter returns the dimension of your screen MINUS the Mac menubar at top and MINUS the Mac dock at the bottom.
Example:
I use a 27" screen and get these values
the screenrect -> 0,0,2560,1440
the working screenrect -> 0,25,2560,1376
If your stack has decorations, the window title bar is also about 24 pixel (or 26? Not sure) in height.
So if you do some calculations you will get the dimensions to set your stack to, know what I mean?
If you have more questions, just ask!
Best
Klaus
I presume you are on a Mac, right?
You can check the screenrect and also -> the working screenrect
The latter returns the dimension of your screen MINUS the Mac menubar at top and MINUS the Mac dock at the bottom.
Example:
I use a 27" screen and get these values
the screenrect -> 0,0,2560,1440
the working screenrect -> 0,25,2560,1376
If your stack has decorations, the window title bar is also about 24 pixel (or 26? Not sure) in height.
So if you do some calculations you will get the dimensions to set your stack to, know what I mean?
If you have more questions, just ask!
Best
Klaus
Re: Making big stacks take the top-bar's place
Hi Klaus!
Thanks for your quick answer.
I am using a 27" screen. I am using Windows 10.
Could you detail a bit more? I basically want to be able to edit a stack that takes the top-bar's place without the top-bar disappearing once I click on the stack.
Thanks.
Thanks for your quick answer.
I am using a 27" screen. I am using Windows 10.
Could you detail a bit more? I basically want to be able to edit a stack that takes the top-bar's place without the top-bar disappearing once I click on the stack.
Thanks.
Re: Making big stacks take the top-bar's place
Please tell me first what a "top bar" is on Windows?
Did you place your taskbar at the top of your monitor?
Or do you mean the title bar of a window, see screenshot?
Did you place your taskbar at the top of your monitor?
Or do you mean the title bar of a window, see screenshot?
-
- VIP Livecode Opensource Backer
- Posts: 9580
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Making big stacks take the top-bar's place
Are we talking about the toolbar?
Likely not pertinent, but on a Mac, any window in LC will cover the toolbar. That gadget is just a stack. Can it be set to act as a palette? I tried it and got poor results.
Craig
Likely not pertinent, but on a Mac, any window in LC will cover the toolbar. That gadget is just a stack. Can it be set to act as a palette? I tried it and got poor results.
Craig
Re: Making big stacks take the top-bar's place
I am not sure how to explain..
When opening LiveCode, there is the toolbar on the left, and a bar a bit above and a bit right.
Big stacks hide that bar and make me re-open it every time from the Windows taskbar.
I haven't put the Windows taskbar on top of the screen.
When opening LiveCode, there is the toolbar on the left, and a bar a bit above and a bit right.
Big stacks hide that bar and make me re-open it every time from the Windows taskbar.
I haven't put the Windows taskbar on top of the screen.
Re: Making big stacks take the top-bar's place
AHA! We are talking about the LC TOOLBAR!
The stacks name is "revMenuBar".
OK, since this is just a stack (= window) it will be covered by other stacks/windows if they are placed in front of it.
Maybe what Craig wrote will work for you?
If that will cause problem of any kind, revert it again with the message box:
The stacks name is "revMenuBar".
OK, since this is just a stack (= window) it will be covered by other stacks/windows if they are placed in front of it.
Maybe what Craig wrote will work for you?
Try to set it to "palette" with the message box:That gadget is just a stack. Can it be set to act as a palette? I tried it and got poor results.
Code: Select all
palette "revMenuBar"
Code: Select all
toplevel "revMenuBar"
Re: Making big stacks take the top-bar's place
Thank you so much!
That solved that problem, but created another problem that doesn't fix itself even with reverting (toplevel).
"revMenuBar" becomes smaller and hides all the buttons. I get an error in the messageBox when entering 'palette "revMenuBar"':
'Error description: stack is locked (cantModify)'.
What should I change for that to work properly?
Thanks!
That solved that problem, but created another problem that doesn't fix itself even with reverting (toplevel).
"revMenuBar" becomes smaller and hides all the buttons. I get an error in the messageBox when entering 'palette "revMenuBar"':
'Error description: stack is locked (cantModify)'.
What should I change for that to work properly?
Thanks!
Re: Making big stacks take the top-bar's place
Ah, OK, try this in the message box:
You can use the SEMICOLON ; to enter more than one command in the (one line) message box.
Be aware that we probably cannot save the IDE stacks, so you may need to do this every time you start up LC.
Code: Select all
set the cantmodify of stack "revMenuBar" to FALSE;palette "revMenuBar"
Be aware that we probably cannot save the IDE stacks, so you may need to do this every time you start up LC.
-
- VIP Livecode Opensource Backer
- Posts: 9580
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Making big stacks take the top-bar's place
Klaus.
That is what I meant by "poor results". The IDE stacks will not pay attention to any modifications between sessions.
Interestingly, on a Mac, if i do NOT clear cantModify, the stack increases in height and none of the controls appear. Cannot be undone without quitting LC. I get a simple white rectangle, and a notification of an error, saying that the stack "revmenubar" is locked. I get that part, but what about the fat empty stack itself?
Craig
That is what I meant by "poor results". The IDE stacks will not pay attention to any modifications between sessions.
Interestingly, on a Mac, if i do NOT clear cantModify, the stack increases in height and none of the controls appear. Cannot be undone without quitting LC. I get a simple white rectangle, and a notification of an error, saying that the stack "revmenubar" is locked. I get that part, but what about the fat empty stack itself?
Craig
-
- VIP Livecode Opensource Backer
- Posts: 9580
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Making big stacks take the top-bar's place
Likely just a feature of IDE stacks. Don't mess with them without expecting trouble.
Craig
Craig
-
- VIP Livecode Opensource Backer
- Posts: 9580
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Making big stacks take the top-bar's place
FESEFW.
This is really a minor problem. You can always create a plug-in or any other gadget that will set those toolbar properties (that is what we call it) upon LC startup.
Craig
This is really a minor problem. You can always create a plug-in or any other gadget that will set those toolbar properties (that is what we call it) upon LC startup.
Craig
Re: Making big stacks take the top-bar's place
An idea:
You can zoom your stack with the stack's scaleFactor property (either in the message box: set the scaleFactor of stack "YourStack" to 0.92 or in the property inspector)
This doesn't change the actual height and width of your stack, it just zooms the view so the entire window fits under the Livecode toolbar.
You can zoom your stack with the stack's scaleFactor property (either in the message box: set the scaleFactor of stack "YourStack" to 0.92 or in the property inspector)
This doesn't change the actual height and width of your stack, it just zooms the view so the entire window fits under the Livecode toolbar.
-
- VIP Livecode Opensource Backer
- Posts: 9580
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Making big stacks take the top-bar's place
@grzkmo
For purely visual display, the "scaleFactor" does a great job. But it does not change the "actual" properties of a stack window, such as the top, height, even the rect. It is thus not possible to do something I tried long ago, to adjust that property continuously under script control until the rect of the window attained certain limits.
I am not sure why it does not, though it obviously uses special internal display gadgetry.
@FESEFW. But it is an interesting idea. You could change the rect proportionately and continuously, keeping track of all the sides, adjusting them as you grow so that the loc "sort of" stays constant, and they cease that growing when both the top reaches the top and the bottom reaches the bottom.
Unlike the scaleFactor, the controls do not concurrently change their "size". But I think you likely do not want that anyway.
A fun thing...
Craig
For purely visual display, the "scaleFactor" does a great job. But it does not change the "actual" properties of a stack window, such as the top, height, even the rect. It is thus not possible to do something I tried long ago, to adjust that property continuously under script control until the rect of the window attained certain limits.
I am not sure why it does not, though it obviously uses special internal display gadgetry.
@FESEFW. But it is an interesting idea. You could change the rect proportionately and continuously, keeping track of all the sides, adjusting them as you grow so that the loc "sort of" stays constant, and they cease that growing when both the top reaches the top and the bottom reaches the bottom.
Unlike the scaleFactor, the controls do not concurrently change their "size". But I think you likely do not want that anyway.
A fun thing...
Craig