LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with HidePanel follwed MessagePopup / Strange dimmed buttons

I have an application using CVI 5.5 with about 30 UIR Panels.

There are 2 Problems:

1. A HidePanel(..) followed a MessagePopup(..) is not performed. Putting a brakpoint on the HidePanel (..) an debugging it is performed.
2. Dimmed buttons have areas with different colours.

Thanks for any help
Volker
0 Kudos
Message 1 of 2
(2,893 Views)
Hi Volker,

I made a simple project that simply loads one panel when pressing a button on the main panel; next with a button on the second panel I hide it and display a message (MessagePopup): the panel is effectively hided before the MessagePopup executes both if the panel is installed as a poput and if it is only displayed with DisplayPanel. Can you detail a little more your code? The panel is shown as a simple panel or a popup? It is a top-level panel or a child one? It has some special attribute (always on top or other particular characteristics)?

I too have observed some times that putting a breakpoint let the program behaves differently from normal execution: I suppose that the BP involves some GUI updating. Have you tried to insert a ProcessDrawEvents before the MessagePopup?


As per the dimmed buttons, consider that they are drawn using color scales built from panel background color: if your panels have different background colors it's normal that dimmed buttons are different from panel to panel and you can do nothing to modify this aspect (well, you could use panels with the same background color and place a coloured decoration below all controls for the panels in which you need some special background

Message Edited by Roberto Bozzolo on 05-09-2005 09:51 PM



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 2
(2,886 Views)