Searching but not finding - Programmatically create tabs

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
trenatos
Posts: 189
Joined: Wed Jul 03, 2013 6:46 am
Contact:

Searching but not finding - Programmatically create tabs

Post by trenatos »

I've been looking for info on this for a while, but I can't find it anywhere: How would I programmatically create/delete tabs?

It's for a dynamic interface, so I won't know the values of the tabs, or how many there are beforehand.
Marcus
FredBeck
Posts: 77
Joined: Fri Nov 01, 2013 3:07 pm
Contact:

Re: Not searching enough but still finding...

Post by FredBeck »

Where on earth have you been looking? :)
From the user's manual :
To create the individual menu items that will appear in the menu, set the button's text
property to the menu's contents, one menu item per line. You can either set this property
in a handler, or fill in the box labeled "Menu items" on the Basic Properties pane of the
property inspector.
And since it's Coffe+Livecode time here, there's a stack.
Attachments
DynTabMenu.zip
(1.02 KiB) Downloaded 279 times
trenatos
Posts: 189
Joined: Wed Jul 03, 2013 6:46 am
Contact:

Re: Searching but not finding - Programmatically create tabs

Post by trenatos »

Bah, I knew it'd be something stupid simple, just couldn't find it. lol

Thanks FredBeck :)
Marcus
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: Searching but not finding - Programmatically create tabs

Post by dunbarx »

Hi.

You should also play around with all the control characters that go along with that, so you can create hierarchal menus, dividing lines, etc.

Craig Newman
trenatos
Posts: 189
Joined: Wed Jul 03, 2013 6:46 am
Contact:

Re: Searching but not finding - Programmatically create tabs

Post by trenatos »

I'm looking for / thinking of making a decent folder/file tree
Marcus
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Searching but not finding - Programmatically create tabs

Post by jmburnod »

Hi Marcus,
Here is a lesson about "files and folder" that could be useful for your project
http://lessons.runrev.com/m/4071/l/1708 ... ers-part-2
Best regards
Jean-Marc
https://alternatic.ch
trenatos
Posts: 189
Joined: Wed Jul 03, 2013 6:46 am
Contact:

Re: Searching but not finding - Programmatically create tabs

Post by trenatos »

Getting the data's not a problem, just a matter of displaying, and if I'll have to build something up for that myself or if I can find something free. (At the moment it seems I'll be creating something)
Marcus
Post Reply