03-18-2016 12:36 PM
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.
Solved! Go to Solution.
03-19-2016 02:59 AM
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?
03-21-2016 07:47 AM
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.
03-21-2016 08:33 AM
Could a series of SetCtrlVal do what you want?
03-21-2016 08:51 AM
Yes. It works. Thank you.
03-21-2016 09:12 AM
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.