LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Title of cells of table

I am newbie in Labwindows.  and working on examples in labwindows . To make table i did not find how to mention the title of the cells. Could you anyone help me out.

 

Another question is making menubar, how to add menu item. I tried to check with examples but i could not find where it has written and neither in user manual.

 

Thank you for your help

 

0 Kudos
Message 1 of 5
(3,413 Views)

Tables can either be customized within the UIR editor (the function which enables you to graphically design the user interface) or programmatically at runtime; in the second case you can use SetTableColumnAttribute to set column labels with attribute ATTR_LABEL_TEXT.

 

With regards to the second question, programmatically adding menu items can be done with NewMenuItem.

 

In my opinion, nevertheless, since you are a newbie you should first learn how to graphically design and realize a good user interface using the UIR editor. You should particularly go into the tutorials which show you how to develop a graphical user interface.



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 5
(3,410 Views)

Hi Roberto,

 

Thank you for your valuable reply. Could you please telll me how in UIR not programmatically at runtime can do those. As i tried in manual i could not find it.

 

Best regards

0 Kudos
Message 3 of 5
(3,394 Views)

Column titles are set this way:

  1. Place a table on the panel, double-click on it
  2. Insert a column, press Edit column button
  3. Check Use label text and input your own text in Label field

 

Menus are created via Edit >> Menu Bars... menu item: in the panel press Create... button: you will see a panel where you can create your own menu bar. Use the help button on the panel to have some explanation on the various options available. The best thing is that you experiment with the buttons on that panel: while you are doing it the menu bar is continuously updated in the box in the lower end of the panel so you can have a feedback for all actions.



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 4 of 5
(3,379 Views)

Thank you Roberto.

 

Regards

0 Kudos
Message 5 of 5
(3,345 Views)