09-02-2008 06:03 PM
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()?
09-03-2008 12:00 AM
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.
09-03-2008 01:23 PM