U++ framework
Do not panic. Ask here before giving up.

Home » Developing U++ » UppHub » TabBar. Uninitialized member
Re: TabBar. Uninitialized member [message #20822 is a reply to message #20804] Fri, 10 April 2009 18:19 Go to previous messageGo to previous message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

A little proposal.
Each tab corresponds to some object. Adding a tab is made with adding some Value to TabBar internal list. Most of time this Value is String, which is drawn inside tab.
So imagine that user`s made something with one of controls associated with current tab. What do I do?
1) First of all, I pass my internal objects Vector to determine which of them corresponds to current tab
2) Do some action

I think it will be better to add tabs with a pair of (Value,Value) (like in DropList). One may hold "title" information (like String) while another will hold some reference info (like index, pointer or event One<MyTabbedClass>).
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Cairo
Next Topic: OfficeAutomation documented
Goto Forum:
  


Current Time: Thu Jun 18 12:19:25 GMT+2 2026

Total time taken to generate the page: 0.00625 seconds