GetScreenPosition and iconize
Jorgen Bodde
jorgen.maillist at gmail.com
Fri Feb 9 00:56:14 PST 2007
I would still vote for uniform functionality. And I am in favor of
returning the restored size. Reason is when you save your settings and
you want to save the size of the window for restoring it later, you
get weird -32000 or -1 or whatever. Storing that as your size in your
settings, will screw up your app the next time you run it. So you have
to do smart stuff to prevent saving the size when the app is
minimized, which has the nasty stide effect again that the last used
position cannot be saved! So everytime my app restores after iconized
state, it always comes back to the last known valid position.
This is why always giving back the actual size, iconized or not, is better.
- Jorgen
On 9 Feb 2007 00:09:42 -0800, olivier.corrio at gmail.com
<olivier.corrio at gmail.com> wrote:
>
> Hi,
> maybe sending -32000 is better that -1 because for example -100 ony
> means that the left part of the frame is out of the screen and from
> now screen size is too small to be able to give -32000 value (maybe in
> 10 years).
> Or a good think is just to give the information on the documentation
> instead of changing something.
> Olivier
>
> On 8 fév, 17:12, v... at wxwindows.org (Vadim Zeitlin) wrote:
> > On Thu, 8 Feb 2007 14:44:15 +0100 Jorgen Bodde <jorgen.maill... at gmail.com> wrote:
> >
> > JB> I second that, I can remember writing my restore code for my window,
> > JB> that I simply check if the size I get back is < 0 for both x and y, I
> > JB> do not set the new size. But indeed it is better to have a uniform
> > JB> result across all ports.
> >
> > BTW, thinking more about it, it might actually make more sense to return
> > the restored size even when the window is minimized as you can already use
> > IsIconized() to check if it's minimized or not. I.e. instead of changing
> > wxGTK to conform to wxMSW behaviour, maybe we should do the reverse?
> >
> > Regards,
> > VZ
> >
> > --
> > TT-Solutions: wxWidgets consultancy and technical support
> > http://www.tt-solutions.com/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: wx-users-unsubscr... at lists.wxwidgets.org
> > For additional commands, e-mail: wx-users-h... at lists.wxwidgets.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
More information about the wx-users
mailing list