From: Mark M. <mie...@gm...> - 2012-05-23 00:05:48
|
On Tue, May 22, 2012 at 4:37 PM, Oliver Sims < oli...@si...> wrote: > ** > Is there a way of making a dialog visible and topmost if either hidden or > minimized? I can find how to make it visible if minimised, and how to make > it visible if hidden. But to do what I want, I have to use two successive > ~show methods: > > viewId~show("SHOWTOP") -- if minimized, doesn't work. > viewId~show("NORMAL") -- if hidden, doesn't work > What's wrong with 2 instructions? You are doing 2 things ... ;-) > It would be nice to be able to do it with one instruction. But maybe this > is a Windows restriction? > > It looks to be a Windows restriction with the ShowWindow() API which is what is used with show(). You can only use one option with the Windows API. I'm not sure if there is a way to do it using some other Windows API, but I don't see a way to do it. Restoring a minimized window is one thing, making a hidden window visible is another thing altogether. So, it just might not be possible. Of course you can always add your own method to your dialog class: ::method myShowWindow() self~show('SHOWTOP') self~show('NORMAL') return Then just always call myShowWindow() -- Mark Miesfeld |