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

Home » U++ Library support » TabCtrl » Missing API for what I need to do?
Missing API for what I need to do? [message #14163] Sat, 16 February 2008 00:34 Go to previous message
jlfranks is currently offline  jlfranks
Messages: 57
Registered: May 2007
Location: Houston, TX, USA
Member
I have a TabCtrl populated with five tabs using
TabCtrl::Item& Add(Ctrl& slave, const char *text)

We need a special behavior for the control that happens to
be index 4. I sense the tab Action with a callback. I don't
know which tab is selected except by index. So, my magic
number 4 is supposed to be related to the special object that requires additional handling. The problem is that I have
no way to verify that in the callback. There seems to be no
way to get at the slave control and make a comparison to
the control of interest for special handling.

If the order of the tab pages change (other programmers, etc.),
callback will be doing the wrong thing. There seems to be no
way to determine that the current selected item is the one of interest.

Somehow, I expected to have an API that I could get at the
slave object, test it, and perhaps apply special handling if
it is the object of interest.

Is there some way of doing this with the API already in place?

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TabDlg callback when another Tab is selected?
Next Topic: TabCtrl feature request + patch
Goto Forum:
  


Current Time: Mon Apr 27 22:13:42 GMT+2 2026

Total time taken to generate the page: 0.00588 seconds