I've got a strange occasional bug in a project. I have a main panel that launches another panel via menubar. This secondary panel sometimes doesn't open or appear. The focus of my main panel is lost, so it would seam that the new panel got the focus, yet isn't visible.
Currently, to launch this secondary panel, I'm doing so with:
SetPanelAttribute(panel, ATTR_LEFT, VAL_AUTO_CENTER);
SetPanelAttribute(panel, ATTR_TOP, VAL_AUTO_CENTER);
DisplayPanel(panel);
SetActivePanel(panel);
It's confusing that the AUTO_CENTER macros aren't forcing it to be in range.
One more curiosity. If, after attempting to open it from the menu, you try an ALT+TAB or WIN+TAB, the missing panel will "appear" in the list of open applications. Yet, navigating to it, again it's gone. This leads me to suspect that it's actually open somewhere, but not front and center.
Any other things I should try?