Page 1 of 1

Livecode does not allow both min and max decorations?

Posted: Wed Nov 30, 2016 12:58 am
by Ed_Ray
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.

Re: Livecode does not allow both min and max decorations?

Posted: Wed Nov 30, 2016 6:35 pm
by jacque
The standard default window decoration has both. Is it missing for you?

Re: Livecode does not allow both min and max decorations?

Posted: Thu Dec 01, 2016 9:54 am
by Ed_Ray
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.

Re: Livecode does not allow both min and max decorations?

Posted: Thu Dec 01, 2016 3:01 pm
by dunbarx
I am on a Mac, but this works just fine:

Code: Select all

on mouseUp
   set the decorations of this stack to "minimize,maximize"
end mouseUp
Craig Newman

Re: Livecode does not allow both min and max decorations?

Posted: Thu Dec 01, 2016 5:45 pm
by jacque
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.

Re: Livecode does not allow both min and max decorations?

Posted: Thu Dec 01, 2016 7:48 pm
by FourthWorld
To get the default decorations for a stack window use:

Code: Select all

set the decorations of stack "SomeStack" to default

Re: Livecode does not allow both min and max decorations?

Posted: Fri Dec 02, 2016 11:23 pm
by Thunder
dunbarx wrote:I am on a Mac, but this works just fine:

Code: Select all

on mouseUp
   set the decorations of this stack to "minimize,maximize"
end mouseUp
Craig Newman

Works for me to on Windows 10
LC 8.1

Re: Livecode does not allow both min and max decorations?

Posted: Wed Dec 07, 2016 10:39 am
by Ed_Ray
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.