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 |
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?
|
|
|
|
|
Missing API for what I need to do?
By: jlfranks on Sat, 16 February 2008 00:34
|
|
|
Re: Missing API for what I need to do?
By: mrjt on Mon, 18 February 2008 11:04
|
|
|
Re: Missing API for what I need to do?
By: jlfranks on Tue, 11 March 2008 06:47
|
|
|
Re: Missing API for what I need to do?
By: zsolt on Thu, 27 March 2008 22:10
|
|
|
Re: Missing API for what I need to do?
By: mirek on Thu, 27 March 2008 23:28
|
|
|
Re: Missing API for what I need to do?
By: zsolt on Fri, 28 March 2008 00:14
|
|
|
Re: Missing API for what I need to do?
By: zsolt on Thu, 08 May 2008 21:40
|
|
|
Re: Missing API for what I need to do?
By: zsolt on Thu, 15 May 2008 22:41
|
|
|
Re: Missing API for what I need to do?
By: mirek on Tue, 19 February 2008 23:46
|
|
|
Re: Missing API for what I need to do?
By: jlfranks on Tue, 11 March 2008 06:19
|
Goto Forum:
Current Time: Fri Apr 26 16:00:49 CEST 2024
Total time taken to generate the page: 0.03901 seconds
|