Livecode does not allow both min and max decorations?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Ed_Ray
Posts: 83
Joined: Sun Jun 19, 2016 12:18 am

Livecode does not allow both min and max decorations?

Post by Ed_Ray » Wed Nov 30, 2016 12:58 am

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.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

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

Post by jacque » Wed Nov 30, 2016 6:35 pm

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

Ed_Ray
Posts: 83
Joined: Sun Jun 19, 2016 12:18 am

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

Post by Ed_Ray » Thu Dec 01, 2016 9:54 am

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.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10330
Joined: Wed May 06, 2009 2:28 pm

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

Post by dunbarx » Thu Dec 01, 2016 3:01 pm

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

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

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

Post by jacque » Thu Dec 01, 2016 5:45 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

FourthWorld
VIP Livecode Opensource Backer
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?

Post by FourthWorld » Thu Dec 01, 2016 7:48 pm

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

Thunder
Posts: 20
Joined: Thu Mar 12, 2015 1:52 pm

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

Post by Thunder » Fri Dec 02, 2016 11:23 pm

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

Ed_Ray
Posts: 83
Joined: Sun Jun 19, 2016 12:18 am

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

Post by Ed_Ray » Wed Dec 07, 2016 10:39 am

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.

Post Reply