LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Pass parameters custom popup

Solved!
Go to solution

Hello.

I created a panel and want to show it like popup modal dialog.

My code is:

 

int panelHandle = LoadPanel(0, "Dialog.uir", PANEL);
if(panelHandle < 0)
return 0;
DisplayPanel(panelHandle);
RunUserInterface();
DiscardPanel(panelHandle);

I need to pass several parameters into the dialog. How can I do it?

Thank you.

 

0 Kudos
Message 1 of 6
(4,094 Views)

First of al, DisplayPanel does not show a panel as modal: use InstallPopup instead. 

How are intending to customize the window?  Can you add some details?



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 6
(4,082 Views)

Hi Roberto, thank you for your answer.

There are  couple spinboxes and on dropdownlist on the popup (or panel), "OK" and "Cancel" buttons. So I want to pass couple double values and pointer to char (char*) to the dialog.

0 Kudos
Message 3 of 6
(4,054 Views)
Solution
Accepted by giker

Could a series of SetCtrlVal do what you want?



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 6
(4,050 Views)

Yes. It works. Thank you.

0 Kudos
Message 5 of 6
(4,047 Views)

You're welcome.

 

It looks like you are quite new to CVI: you should seriously consider reading the Getting Started manual; you'll find it linked in <cviDir>\bin folder, where <cviDir> is CVI installation folder.

 



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 6 of 6
(4,041 Views)