Tab Panel problem

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

bjb007
Posts: 313
Joined: Fri Dec 28, 2007 4:56 am

Tab Panel problem

Post by bjb007 » Thu Mar 13, 2008 2:32 pm

I've put a tab panel on a main stack
with four tabs.

Objects I've put on the fourth tab
also appear on the other three - which
is not what I want.

How do I restrict objects to the tab
on which I put them?
Life is just a bowl of cherries.

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Post by malte » Thu Mar 13, 2008 3:12 pm

what do you do in the tabs script?

I would either put the tab into a group with backgroudbehaviour set to true and create a card for each tab, then in the script of the tab:

on menupick pWhich
go cd pWhich
end menuPick

or work with groups of objects you dynamically hide or show.

All the best,

Malte

bjb007
Posts: 313
Joined: Fri Dec 28, 2007 4:56 am

Tab Panel problem

Post by bjb007 » Thu Mar 13, 2008 5:46 pm

I naively assumed that once I set up
the various tabs I could just - tab between
them without further effort. The way other
languages work.

Seems not.

This and the "a combobox is a button" thing
is the kind of perverse idiosyncrasy that
condemns Rev to stay forever in the back-
woods of languages. Who would want to
switch to Rev knowing they had to re-learn
just about everything they know about
programming?
Life is just a bowl of cherries.

keyless
Posts: 211
Joined: Wed Dec 12, 2007 11:21 pm

Re: Tab Panel problem

Post by keyless » Thu Mar 13, 2008 7:02 pm

bjb007 wrote:I naively assumed that once I set up
the various tabs I could just - tab between
them without further effort. The way other
languages work.

Seems not.

This and the "a combobox is a button" thing
is the kind of perverse idiosyncrasy that
condemns Rev to stay forever in the back-
woods of languages. Who would want to
switch to Rev knowing they had to re-learn
just about everything they know about
programming?
Think about it some more, the fact that the tab panal is card or stack based makes it wildly more functional then the same widget in most other languages (i.e you can switch up and change the tabs contents and controls at runtime with ease).

Making it work any other way would make it a idiosycrasy of the card based logic of revolution itself.

Quite simple learn how to use cards and stacks in Revolution as you really have too, and you will already know how to use the combobox.
Last edited by keyless on Sat Mar 15, 2008 4:55 am, edited 1 time in total.

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Tab Panel problem

Post by Klaus » Thu Mar 13, 2008 7:05 pm

bjb007 wrote:...Who would want to
switch to Rev knowing they had to re-learn
just about everything they know about
programming?
That's what YOU are asking US????

bjb007
Posts: 313
Joined: Fri Dec 28, 2007 4:56 am

Tab Panel problem

Post by bjb007 » Thu Mar 13, 2008 9:00 pm

Klaus

No, not asking. Just expressing an
opinion. Wondering if there's a
Gordon Ramsey of software.

Found a video "Window Objects" and
after watching it a number of times
I've got a tabbed interface working.

Each "card" title has (1)*, (2)* or (3)*
added to it.

Can I get rig of these extraneous characters?

Edit: Put your title in the "Title" field of the
property inspector and it replaces the
"Name" used by Rev. which has the
(1)* appended.
Last edited by bjb007 on Sat Mar 15, 2008 7:49 pm, edited 1 time in total.
Life is just a bowl of cherries.

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Post by malte » Fri Mar 14, 2008 2:37 am

Nobody forces you to use it.

*sigh*

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Fri Mar 14, 2008 9:33 am

With all due respect, but do not use your grumpyness (which you do not stop to emphasize and is apparently your way of life) to really annoy us!

"Other languages do this, other languages do that, other languages do something else..."

A Malte says, nobody forces you to use this software, obviously you didn't even bother to take a look at any of the learning resources that we already posted here, especially the Rev "scripting conferences", which in my opinion EVERYONE should be forced to work through before he can post here or to the "use-revolution-list" :-)

Life is definitvely too short to be annoyed by (too) grumpy old men!


Ciao stizzito...

bjb007
Posts: 313
Joined: Fri Dec 28, 2007 4:56 am

Tab Panel problem

Post by bjb007 » Sat Mar 15, 2008 1:37 am

Klaus

I spent, I would say, two hours at least trying
to figure out the combobox conundrum without
finding that it's called a button in Rev.

English is the language of the internet and
a large percent of the world (much to the annoyance
of the French) but the advantages of having
a common language are lost the moment a
user decided that he'll give a particular object
a different name or a particular word a
different meaning.

In this case someone has decided that a combobox
will be called a button and that has caused a
breakdown in the communication.
Life is just a bowl of cherries.

mcgrath3
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 149
Joined: Thu Feb 23, 2006 8:49 pm
Contact:

Post by mcgrath3 » Sat Mar 15, 2008 5:53 am

I spent, I would say, two hours at least trying
to figure out the combobox conundrum without
finding that it's called a button in Rev
It only takes two seconds to search the Revolution Dictionary for Combobox to find:


The menuMode of a button is one of pullDown, cascade, popup, tabbed, comboBox, or option.
Last edited by mcgrath3 on Sat Mar 15, 2008 6:09 am, edited 1 time in total.
Tom McGrath III
Lazy River Software
3mcgrath@comcast.net

mcgrath3
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 149
Joined: Thu Feb 23, 2006 8:49 pm
Contact:

Post by mcgrath3 » Sat Mar 15, 2008 6:03 am

Search The Revolution Dictionary:


-------------------
Search the Rev Dictionary for ComboBox
MenuMode
Use the menuMode property to specify the appearance and behavior of the menu associated with a button.

Value:
The menuMode of a button is one of pullDown, cascade, popup, tabbed, comboBox, or option.

Comments:
Any button's contents can be viewed as a menu if the button's style property is set to "menu". The menuMode setting creates menus of different types from the button's contents. (You set the button's contents with the text property.)

-------------------
Search the Rev Dictionary for Menu
Comments:
If a button's style is set to "menu", its menuMode property determines how the menu is displayed when the user clicks the button.

You can use the menu keyword to refer to one of the buttons in the current menu bar.

--------------------
Search the Rev Dictionary for Button
Comments:
Button objects can be push buttons, checkboxes, radio buttons, or menus, depending on the setting of their style property.

A button whose style is set to "menu" can be a popup or contextual menu, pulldown menu, option menu, tabbed button, or combo box, depending on the setting of its menuMode property.
Tom McGrath III
Lazy River Software
3mcgrath@comcast.net

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10049
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Tab Panel problem

Post by FourthWorld » Sat Mar 15, 2008 5:13 pm

bjb007 wrote:English is the language of the internet and
a large percent of the world (much to the annoyance
of the French) but the advantages of having
a common language are lost the moment a
user decided that he'll give a particular object
a different name or a particular word a
different meaning.
It's worse than you think: in the Windows API comboboxes are windows. No, really. In fact, every control is a window. Even windows, which aren't controls.

In HTML, option controls and text lists are considered the same object.

This isn't a conspiracy to drive English teachers mad. It's merely an attempt to identify common underpinning, and classify things accordingly.

Image
The joshua tree looks like a cactus, and is often confused for being a mutant yucca, but is -- I kid you not -- actually in the lily family. Only the most superficial aspects of the joshua tree resemble a yucca or catcus, but on closer examination it meets all the definitions of a lily.

Taxonomies are difficult things to do well. To have completely separate words for everything denies us the opportunity to exercise the benefits of referring to collections of things by a larger group name.

I have my own mixed feelings about the use of "button" for all selector objects, and perhaps one could argue that they might deprecate "button" in favor of "selector".

But in practice, once you understand that "button" is used in Rev as a simple, less formal-sounding replacement for "selector", it all becomes clear. Or at least clearer than both the Windows and JavaScript APIs. ;)
Last edited by FourthWorld on Sat Mar 15, 2008 8:03 pm, edited 1 time in total.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

mcgrath3
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 149
Joined: Thu Feb 23, 2006 8:49 pm
Contact:

Post by mcgrath3 » Sat Mar 15, 2008 6:50 pm

Yeah, Except in this case it is less about whether or not the combobox is 'called' a button but rather that 'menu' is a STYLE of a button.
A button whose style is set to "menu" can be a
This is deeper than where to 'put' or associate the combobox in relation to menu's or button's or control's or selector's. Instead it is buried in the fact that 'menu' is a style of a button object.

That is very interesting to me.

Tom McG
Tom McGrath III
Lazy River Software
3mcgrath@comcast.net

bjb007
Posts: 313
Joined: Fri Dec 28, 2007 4:56 am

Tab Panel problem

Post by bjb007 » Sat Mar 15, 2008 7:26 pm

FourthWorld

As you say "The joshua tree looks like a cactus".

But don't tell me that a combobox looks or acts
like a button!
Life is just a bowl of cherries.

bjb007
Posts: 313
Joined: Fri Dec 28, 2007 4:56 am

Post by bjb007 » Sat Mar 15, 2008 7:51 pm

malte wrote:Nobody forces you to use it.

*sigh*
If you download and try the latest
free "lite" version of VB (Visual Studio)
you might come to the conclusion that
Bill Gates is forcing me to use Rev.
Life is just a bowl of cherries.

Post Reply