Re: OPO V2.0 Toolbar Hints & Maximised issues

From: Kári Poulsen <kapo_at_olivant.fo>
Date: 1997/01/10
Message-ID: <01bbff4d$0501f680$10ebb6c2_at_henry>#1/1


Bob Gill <bgill_at_wire.net.au> wrote in article <32D08D33.4E37_at_wire.net.au>...
> Does anyone know of a way to display a hint when
> the cursor is on a toolbar button? The standard

Sorry, can't help you with this one. I've fiddled around with the same thing but I could not get it to work.  

> Secondly, when a window (Window B) is Maximised,
> it should be possible to place this window at a
> different Y-axis position after it has maximised.
> The example I'm quoting assumes that another
> window (Window A) should always exist just below
> the Menu Bar. However, on moving Window B to be
> below Window A on maximising, causes Window B
> still to be hidden and Window A displayed in a
> buggy fashion. Is this a bug or am I doing it
> wrongly or it is not possible?
>
> Code in MoveWindow() method of Form is as follows:
>
> Inherited.MoveWindow(x, y, wid, ht, context)
>
> self.SizeX = wid
> self.SizeY = ht
>
> ' If MAXIMISED then, place the form below the
> Window A.
>
> IF x = 0 AND y = 0 THEN
> self.PositionY = 100
> END IF
>
> Would appreciate a reply to me directly, and if
> the solution works, I'll post it to these
> newsgroups so that others are aware of it too.
>

Here's a quote from OPO-help on movewindow:

"Calls to MoveWindow( ) and changes to a window's properties have no effect while a window is maximized in Windows."

The way I've done it is not to allow the window to be maximized. In the SetWindowMode procdure, check the 'new_mode' value for the maximize state (WINDOWMODE_MINIMIZE, WINDOWMODE_MAXIMIZE, and WiNDOWMODE_RESTORE constants), and DON'T inherit it. Instead, just set the window size & position to what you want.

There's a trick to this, though(of course!): You have no way of finding out the size of the application window except for programatically maximizing a form to find out the size to set you window.:-) Use the SetWindowMode method for this

best regards
 Kári Poulsen Received on Fri Jan 10 1997 - 00:00:00 CET

Original text of this message