Native close, max, min buttons inside effective working rect

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
theotherbassist
Posts: 115
Joined: Thu Mar 06, 2014 9:29 am

Native close, max, min buttons inside effective working rect

Post by theotherbassist »

Is there a way to embed the native close, max, and min buttons in other locations in your stack? Obviously you could script-in buttons that do the same thing... but I'm looking to preserve the native look.

For instance, itunes has a custom topbar but native buttons.
itunestopbar.jpg
itunestopbar.jpg (9 KiB) Viewed 3931 times
I hate asking these kinds of questions... but somebody around here probably has a quick answer to this
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10502
Joined: Wed May 06, 2009 2:28 pm

Re: Native close, max, min buttons inside effective working

Post by dunbarx »

Hi.

You can manage the native ones with the "decorations" property.

But you will have to roll your own if you want to make them "appear" in another location. How else?

Craig Newman
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Native close, max, min buttons inside effective working

Post by Klaus »

Windows (and their decorations as well as most LC controls) are supplied by the underlying operating system,
so we have to take or leave them, or, as Craig said, roll our own!
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Native close, max, min buttons inside effective working

Post by FourthWorld »

It's not too hard to make your own drag bar with controls. A simple example is my devolution plugin - feel free to poke around any use any of the dragging or closebox code you find useful:
http://fourthworld.com/products/devolution/index.html
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
theotherbassist
Posts: 115
Joined: Thu Mar 06, 2014 9:29 am

Re: Native close, max, min buttons inside effective working

Post by theotherbassist »

Sigh... yeah I know it's not difficult to script your own custom decorations...

I was just hoping there'd be some way to alter the underlying stack files (sort of similarly to how you can edit the default modal dialogs if you know the names of the "native" stacks the engine uses). I thought maybe you could potentially rewrite the script that defines where the "decorations" go, and use them as objects on a card without having to recreate your own. I don't know... it was a shot in the dark.
Post Reply