Re: [AD] default windowed position on windows

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> Currently (4.0.3beta) when I create a new window via
> GFX_AUTODETECT_WINDOWED, it gets placed on the upper-left corner of the
> screen.

Elias commited a patch on the trunk related to this problem: the current
window position is saved when you shut down the gfx driver, so that it can
be restored on the next call to set_gfx_mode(). I'll backport it to the
branch.

But the placement of the window on the first call to set_gfx_mode() is still
hardcoded to (32, 32), which obviously might be improved.

> I know in Visual Basic, there's an option of having a window open in the
> "Default Location". Every time the program runs, it gets placed in a
> cascading format from top-left to bottom-right. It's never placed behind
> docked windows unless the entire client size is too large. I've not done
> any research, but perhaps there's a Win32 API function similar to this
> that Allegro could use? I can look for it if no one knows off hand.

That would indeed be the right solution and worth implementing on the branch
as well as on the trunk.

- Eric






Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/