Hello all,
basically the question is, when you have one (or more) panels within tabs,
do they receive EVENT_PANEL_SIZE callbacks when the tab itself is resized ?
The longer version:
I'm just trying to figure out what is the strategy to adopt to resize a tab
with complex content (over which I want full control).
Say on a panel (Pio) I have a lone tab control (PIO_TAB) with multiple
panels inside:
i = CopyTabPage (Pio, PIO_TAB, 0, Pio, PIO_TAB, -1);
GetPanelHandleFromTabPage (Pio, PIO_TAB, i, &Pnl[i]);
SetPanelAttribute(Pnl[i], ATTR_CALLBACK_FUNCTION_POINTER, cbp_TabPanels);
Now Pio has a callback:
int CVICALLBACK cbp_Genepi (int panel, int event, void *callbackData,
int eventData1, int eventData2) {
....
case EVENT_PANEL_SIZE:
GetPanelAttribute(panel, ATTR_WIDTH, &Width);
GetPanelAttribute(panel, ATTR_HEIGHT, &Height);
SetCtrlAttribute(panel, PIO_TAB, ATTR_WIDTH, Width);
SetCtrlAttribute(panel, PIO_TAB, ATTR_HEIGHT, Height);
Now at this point, do I need to loop through all my Pnl[i] and resize
whatever needs to be resized on them or will this trigger a call to
cbp_TabPanels ?
--
Guillaume Dargaud
http://www.gdargaud.net/