Livecode does not allow both min and max decorations?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Livecode does not allow both min and max decorations?
All windows in the windows OS allow both the minimize and maximize top right hand side icons to be seen and used so is there any valid reason why livecode does not allow the developer to set both of these decorations at the same time for their app windows/stacks?
If there is a way to make this happen which I have not determined so far, please specify the steps to make this happen.
Thanks.
If there is a way to make this happen which I have not determined so far, please specify the steps to make this happen.
Thanks.
Re: Livecode does not allow both min and max decorations?
The standard default window decoration has both. Is it missing for you?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Livecode does not allow both min and max decorations?
I should have been more clear. I need the min and max icons active but not the X (close option) because if the IDE is up and a user tries to close the window the IDE gives an intrusive "do you want to save your work etc" message which of course no one wants to see especially if the app is complete (but not converted yet to an an exe) and is otherwise completely finished and has already been "last saved" a thousand time already.
It does not seem that livecode has that particular decoration option (min and max active without the close active). I have a button on the app to delete the stack (closes the stack and removes it memory) so the close decoration being active is not necessary for my app EVEN if it did not give off that silly IDE message when the user clicks on the close icon.
Any ideas in overcoming this livecode decoration option omission?
Thanks.
It does not seem that livecode has that particular decoration option (min and max active without the close active). I have a button on the app to delete the stack (closes the stack and removes it memory) so the close decoration being active is not necessary for my app EVEN if it did not give off that silly IDE message when the user clicks on the close icon.
Any ideas in overcoming this livecode decoration option omission?
Thanks.
Re: Livecode does not allow both min and max decorations?
I am on a Mac, but this works just fine:
Craig Newman
Code: Select all
on mouseUp
set the decorations of this stack to "minimize,maximize"
end mouseUp
Re: Livecode does not allow both min and max decorations?
I think on Windows you have to add "menu" to that.
The aggressive Save dialog has been that way since forever. It annoys me too but better safe than sorry I guess. Usually I just delete the stack from the message box.
The aggressive Save dialog has been that way since forever. It annoys me too but better safe than sorry I guess. Usually I just delete the stack from the message box.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Livecode does not allow both min and max decorations?
To get the default decorations for a stack window use:
Code: Select all
set the decorations of stack "SomeStack" to default
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Livecode does not allow both min and max decorations?
dunbarx wrote:I am on a Mac, but this works just fine:Craig NewmanCode: Select all
on mouseUp set the decorations of this stack to "minimize,maximize" end mouseUp
Works for me to on Windows 10
LC 8.1
Re: Livecode does not allow both min and max decorations?
Regarding the aggressive IDE "do you want to save" mesasage when a user closes the atack using the "X" icon that "jacque" referred to, the problem is that the stack HAS already been saved and livecode know that so there really is no need to tell the the developer if he wants to save it again if no new changes were ever incorporated since the LAST save.
I read through some real convoluted solutions to preclude the IDE from binging up the save work box that were not worth the effort to implement hence why I made my own close button and needed to gray out the X icon.
For fourthworld; its not the default I want (which is min,max and the close options) rather I need the min,max and the close option grayed out. You won't find that option in the stack decorations property sheet.
For dunbarx and thunder; for some strange reason I had tried the
"set the decorations of this stack to "minimize,maximize" in windows 7 various times before but only one of the two (min/max) was kept (I actually kept a copy of my script that has this exact solution so I know I am not dreaming this up). I tried it again per your sugestion and now it worked!?!?
The only change was that I also needed the title and menu so my final script that worked was:
"set the decorations of this stack to "Title, menu, minimize, maximize"
thanks again.
I read through some real convoluted solutions to preclude the IDE from binging up the save work box that were not worth the effort to implement hence why I made my own close button and needed to gray out the X icon.
For fourthworld; its not the default I want (which is min,max and the close options) rather I need the min,max and the close option grayed out. You won't find that option in the stack decorations property sheet.
For dunbarx and thunder; for some strange reason I had tried the
"set the decorations of this stack to "minimize,maximize" in windows 7 various times before but only one of the two (min/max) was kept (I actually kept a copy of my script that has this exact solution so I know I am not dreaming this up). I tried it again per your sugestion and now it worked!?!?
The only change was that I also needed the title and menu so my final script that worked was:
"set the decorations of this stack to "Title, menu, minimize, maximize"
thanks again.