LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get first panel from set of top level panel?

Hi everyone:
I programed with CVI. I need to deal with all panels in my application. All the panels in my application are top-level panel. My question is how can i get first panel from those top-level panel?
Thank you very much!
0 Kudos
Message 1 of 4
(3,251 Views)

Hello Schoolworkwork,

I do not understand your question. Could you please precise it a bit more ?

If what you try to do is to split an .UIR file containing n*panels in n*.UIR files, you should first save your .UIR file into a .TUI one - trough Options >> Save in text format. It means that your .UIR file will be saved as a text file that you will be able to open and edit.

Then, you will have to divide this .TUI file containing n*panels into n*.TUI files. Please note that each .TUI file has to contain a [TUI Header File] and that in each .TUI file, you will need to set you panel ID as [Panel001] (If you plan to have m*panels, you have to set the ID panels from [Panel001 to [Panel00m]). After this kind of work, you should reimport the .TUI file into CVI to recreate the .UIRs - trough Options >> Load from text format.

Don't hesitate to provide us with more details if this is not the kind of information you need.

Regards,

Message Edité par Mathieu Steiner le 02-28-2007 04:46 AM

0 Kudos
Message 2 of 4
(3,244 Views)
Thank you for your help! I am dealing with a CVI program. In that program, a lot of panel were defined. I want to programlly change most text name like Label text name, button text name. so i need to get first panel, then during that panel, i would like to get attributes and set name for them. and so on , i want to do that for each panel. 
Thank you very much!
0 Kudos
Message 3 of 4
(3,239 Views)

Hello back,

Then, you should try the following functions:

   SetPanelAttribute (panelHandle, ATTR_TITLE, "MyNewPanelName"); // for panels only


   SetCtrlAttribute (panelHandle, PANEL_NUMERIC, ATTR_LABEL_TEXT, "MyNewControlLabel"); // for controls labels

Regards,

 

 

0 Kudos
Message 4 of 4
(3,226 Views)