LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

There appears to be no WM_CREATE (Win32 analogy) event with UI Panels

Hi,

 

Where's the best place to fill Ring controls with selections based on programatic querying?  I can't set the selections in the panel editor as the selections are found at runtime.  Normally, if this was a simple windows dialog application, I'd fill it in the WM_CREATE branch of the control's callback.  There doesn't seem to be the same WM_CREATE concept in LabWindows/CVI.  Doing it over and over again in an EVENT_GOT_FOCUS seems silly.  Can I do it after LoadPanel() and before RunUserInterface()?

0 Kudos
Message 1 of 3
(3,321 Views)

All customizing of a panel should be placed after it is loaded with LoadPanel and before the call to DisplayPanel or InstallPopup: this is the best place where to execute these operations (positioning the panel on the screen, displaying/hiding controls, filling rings, setting control callbacks and so on) since the panel is active in memory but not visible and all customizations are not seen by the user.



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
(3,313 Views)
Thanks Roberto, that worked.  I'm amazed with CVI.  Three days into my eval and I've got a custom VFP working for a USB scope done mainly as an exercise for evaluating the development software.
0 Kudos
Message 3 of 3
(3,296 Views)