06-08-2010 04:10 AM
06-08-2010 10:19 AM
The only use for panel constant identifiers is to load the panel with LoadPanel. Once the panel is loaded, you have a panel handle and you never use the panel constant again. This is different than control constants, which you use to identify the control for functions such as SetCtrlVal, etc.
Since all the tab panels are loaded automatically when the panel containing the tab control is loaded, there is no reason to provide constant identifiers for tab panels. You still need a way to get the panel handle for the tab panels, which is why GetPanelHandleFromTabPage is provided.
If you are worried about tabs being reordered, you could retrieve all the tab panel handles immediately after loading the panel containing the tab control, when you are assured that they are in the same order as saved in the .UIR. If the tabs are subsequently reordered, the panel handles are not changed.
Hope this helps,
- jared
06-15-2010 03:40 AM
06-15-2010 04:05 AM - edited 06-15-2010 04:07 AM