Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
jlfranks is currently offline  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
 
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: Tue May 07 15:08:18 CEST 2024

Total time taken to generate the page: 0.02255 seconds