Some kind of start menu

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
Nibor
Posts: 18
Joined: Wed Nov 21, 2012 12:13 pm

Some kind of start menu

Post by Nibor » Thu Jan 10, 2013 9:00 am

Hi there,
I would like to create some kind of start menu for my tool.
The menu should popup just once after the very first start. In this menu
I want to give the user some design specific options.

Can someone please explaine me how to create such a menu ?


regards

Nibor

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

Re: Some kind of start menu

Post by dunbarx » Thu Jan 10, 2013 3:11 pm

Hi.

You can easily create or show an object of any kind at the first start, and set a property that will prevent that event thereafter. A bit of code in the "openstack" script ought to do, and that is where you can set the property to run only the first time the stack is opened.

What sort of "menu" did you have in mind? One of the several button styles? A menubar item? Perhaps an "answer" dialog box with choices?

Craig Newman

Nibor
Posts: 18
Joined: Wed Nov 21, 2012 12:13 pm

Re: Some kind of start menu

Post by Nibor » Thu Jan 10, 2013 3:33 pm

Hi,
I guess it will be a pretty simple menu with maybe a few textfields
and buttons. I should be a kind of login window for a database.
At the moment it's hardcoded and only I can connect to my own database,
but I want to change it so that when you start this tool for the very first time
it will ask you about your login information server, password and stuff like this
these things will be saved and will be used for further uses of this tool.


regards.

Nibor

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

Re: Some kind of start menu

Post by dunbarx » Thu Jan 10, 2013 11:10 pm

Ah.

This is not what we know of as a "menu", but that is really not so important. You will rather want to make a small stack with all your initialization gadgets on it.

The other part of the job is to show this stack only the very first time the main stack opens. It can lie dormant forever after. How much experience with LiveCode do you have? Will this be a standalone?

All very simple, fortunately.

Craig Newman

Nibor
Posts: 18
Joined: Wed Nov 21, 2012 12:13 pm

Re: Some kind of start menu

Post by Nibor » Fri Jan 11, 2013 8:35 am

Hi,
well.. I'm not that experienced with LC
it's a part of my education and I should take a look into it.
Yeah it should be a standalone at the end.


regards

Nibor

Post Reply