[Gambas-user] Question about TabStrip (or TabPanel)

Tobias Boege taboege at ...626...
Mon Sep 28 19:34:36 CEST 2015


On Mon, 28 Sep 2015, Matti wrote:
> Every Tab of TabStrip has an own "Text" property.
> Wouldn't it be useful to have a "Tag" property, too, for each Tab, instead of just one "Tag" for the whole control?
> My first attempts with TabStrip always end in needing to assign something like 'URL' or 'bDirty' to the specific Tab, and "Tag" would be nice there.
> Or am I missing something?

I don't think you missed something. The Tag property comes all the way from
the Control class which is not aware of specific features of TabStrip.

But since Tag is a Variant, it can hold anything. Specifically you can put
a Variant array or Collection into the single Tag property of the TabStrip
and use that to index multiple tags. Was that clear enough?

Regars,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk




More information about the User mailing list