Standard practice - desktop applications

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

Standard practice - desktop applications

Post by Nakia » Mon Mar 25, 2013 7:38 am

Hi,

I am about to start working on my first desktop application
and had a question regarding standard practices.

What is the standard way of creating another view as such.
For example the program preferences that usually open a smaller window
That sits over the main view..

Is this done by simply going to another card? And if so how do I keep the previous card
Disabled but visible in the background..

I have done mobile apps in the past so haven't had to do this before..
Sorry if this is a stupid question...

snm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 253
Joined: Fri Dec 09, 2011 11:17 am

Re: Standard practice - desktop applications

Post by snm » Mon Mar 25, 2013 7:59 am

You must use separate stacks or substacks for each window.

Marek

Randy Hengst
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 157
Joined: Thu Jun 29, 2006 4:16 pm

Re: Standard practice - desktop applications

Post by Randy Hengst » Mon Mar 25, 2013 1:49 pm

I just use separate groups... optionsGroup, instructionsGroup, etc... and show an hide them on the card. As part of the call I set the level to top.

be well,
randy

snm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 253
Joined: Fri Dec 09, 2011 11:17 am

Re: Standard practice - desktop applications

Post by snm » Mon Mar 25, 2013 3:18 pm

Randy,

As I understand, Nakia is asking about few windows displayed simultaneously, not changing views in one window.

Marek

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

Re: Standard practice - desktop applications

Post by jacque » Mon Mar 25, 2013 5:46 pm

Typically preference windows and other supplemental windows are substacks of the main stack, with their style set to modeless or palette. The user can put a modeless window behind the current stack, so if you really do want it to always float, use palette.

If you do not want the user to interact at all with the mainstack, use a modal window. Most operating systems are getting away from those though, they limit interaction very severely. Apple HIG now says that preference windows should be dynamic and reflect user changes immediately even while the window is still open.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

Re: Standard practice - desktop applications

Post by Nakia » Tue Mar 26, 2013 12:22 am

Okay thanks for everyone help...

Post Reply