LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DisplayPanel() doesn't display window

Hello,
 
I'm using this function to display a panel from a menu bar. 
 
void CVICALLBACK aff_data (int menuBar, int menuItem, void *callbackData,int panel)
{
   DisplayPanel(data_login_handle);
}
 
The function is working well with french and english version of windows XP but does absolutely nothing with korean and japanese version of windows XP (the panel doesn't show up).  I use DisplayPanel() successfully somewhere else in the code for other panels.
 
What should I check to debug this kind of behavior ?  Any clues would be very appreciated.
0 Kudos
Message 1 of 3
(3,136 Views)
Sorry to be so trivial, did you try to add ProcessSystemEvents after the DisplayPanel intruction ?

void CVICALLBACK aff_data (int menuBar, int menuItem, void *callbackData,int panel)

DisplayPanel(data_login_handle);
ProcessSystemEvents ();
}



Message 2 of 3
(3,115 Views)
Hello Gich,

You mentioned that the DisplayPanel works in the rest of your program, so I'm not sure if it is an OS language specific problem.  I notice that the callback is actually a menu callback, after adding a call to ProcessSystemEvents as dilution suggested, does the problem still occur?  I would also make sure that the handle you pass into DisplayPanel is valid.  Also, which version of CVI are you using?

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
Message 3 of 3
(3,101 Views)