Home » U++ Library support » TabCtrl » Missing API for what I need to do?
Re: Missing API for what I need to do? [message #14723 is a reply to message #14203] |
Tue, 11 March 2008 06:19 |
jlfranks
Messages: 57 Registered: May 2007 Location: Houston, TX, USA
|
Member |
|
|
Pardon late reply -- broke my leg ...
This API: void TabCtrl::Set(int i);
int TabCtrl::Get() const;
is insufficient to determine what the object is. I can't
rely on magic numbers (index) to determine what the object
really is. I need to get the object itself to determine if
it really is the one of interest.
It is insufficient because in one part of the code the tabctrl
is setup with items in a certain order. In another far removed
piece of code we need to take action based on a particular
Item (object) being selected. There is no guarantee that over
time that the index (magic number) really points to the item
of interest because some other programmer could have added
more tabs (Items) or decided to change the order of the tabs.
Only the underlying object (slave ctrl) can tell us if this is
really the control of interest.
--jlf
|
|
|
|
|
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: Tue May 07 15:08:18 CEST 2024
Total time taken to generate the page: 0.02255 seconds
|