On Tue, May 22, 2012 at 4:37 PM, Oliver Sims <
oliver.s...@simsassociates.co.uk> 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
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to