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