LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Object TABLE in object TAB

Solved!
Go to solution

Hello,

 

I need help quickly it's possible.

I work with Labwindows/CVI, and in a panel I use an object "Table" in an object "Tab".

I added a Tab in my panel and I created several tabs in this object. Then in every tab I added a table.

I can't access to this table in every tab.

I would like add row in the table with the function InsertTableRows but I can't because I don't know how to inform the parameter controlID in the function

( int InsertTableRows (int panelHandle, int controlID, int rowIndex, int numberOfRows, int cellType); ).

In my file ".h", these differents objects are declared as follow:

 

#define  AUDITTRAIL                       1 => THE PANEL
#define  AUDITTRAIL_TAB_AuditTrail        3 => THE OBJECT TAB IN THE PANEL
#define  TAB_User_TABLE_USER              2 => THE OBJECT TABLE INT A TAB OF THE OBJECT TAB
I tried:
InsertTableRows(hand_AuditTrail, AUDITTRAIL_TAB_AuditTrail, lines+1, 1, -1);
or
InsertTableRows(hand_AuditTrail, TAB_User_TABLE_USER, lines+1, 1, -1);
or
InsertTableRows(hand_AuditTrail, AUDITTRAIL_TAB_AuditTrail_TAB_User_TABLE_USER, lines+1, 1, -1);
or
InsertTableRows(hand_AuditTrail, AUDITTRAIL_TAB_User_TABLE_USER, lines+1, 1, -1);
or
InsertTableRows(hand_AuditTrail, AUDITTRAIL_TAB_AuditTrail_TABLE_USER, lines+1, 1, -1);
But unsuccessfully, no one works.
Anybody can help me please ?
Thanks.
Karine.

 

 

0 Kudos
Message 1 of 3
(2,887 Views)
Solution
Accepted by topic author kalcutt

This is a *very* common problem tat everyone faces when he starts using tab controls. The short story is that every tab page is a panel by itself with its own handle and that objects on the tab page must be addressed with that handle. GetPanelHandleFromTabPage can help you in retrieving the correct panel handle to use.

More detailed informations can be found here and here and here. Here the online help for GetPanelHandleFromTabPage



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(2,870 Views)

Thanks a lot! My problem is resolved!

Bye

Karine

0 Kudos
Message 3 of 3
(2,857 Views)