06-06-2006 09:07 AM
06-06-2006 09:49 AM
Regarding your second question, you don't need to duplicate your panel in the UIR file: a panel can be loaded more times in memory, each time is a new instance indipendent from previous one(s) and identified by a different handle; this handle is received by all callbacks for controls in the panel so in the callbacks you can distinguish which panel is operated on; the same handle is to be passed to all functions manipulating controls on the panels so that you can access individual controls on a specific panel independently from the other panels.
So, to load multiple times a panel in a EasyTab control you can do the following:
EasyTab_LoadPanels (panelHandle, theEasyTabControlID, 1, "myFile.UIR", __CVIUserHInst,
PANEL, &ph1, PANEL, &ph2, PANEL, &ph3, 0);
or, alternatively,
ph1 = LoadPanel (0, "myFile.uir", PANEL);
ph2 = LoadPanel (0, "myFile.uir", PANEL);
ph3 = LoadPanel (0, "myFile.uir", PANEL);
EasyTab_AddPanels (panelHandle, theEasyTabControlID, 1, ph1, ph2, ph3, 0);
06-06-2006 09:55 PM
06-07-2006 02:05 AM
@Coding wrote:
I see. Is to say when i duplicate a panel and it's controls , such as buttons etc. And I press the "New" button , CVI will go to theoriginal CallBack Fuction of the button , and process the event with new panel handle and new control IDAM I right?thanks
07-01-2008 12:49 AM
07-01-2008 05:46 AM
07-01-2008 06:10 AM
07-01-2008 08:30 AM
07-01-2008 11:54 PM
07-02-2008 01:48 AM - edited 07-02-2008 01:50 AM