[Glade-users] Start-up Properties

Mystilleef mystilleef at gmail.com
Wed Feb 14 07:29:01 EST 2007


On 2/14/07, Walser, Guenter (wanagu) <guenter.walser at wanagu.eu> wrote:
> Hello,
>
> If I want to store the closing properties (position, width, heigth) of a
> window and use them at start up time to recreate the window with these
> properties again, is this possible?
>
> In GLADE I could find only the settings for the windowposition (None,
> Center, Mouse, ..) and a way to set the width & heigth. But with this it
> always opens the same size and position.
>
> Do I have to manipulate the glade file (change values stored for properties,
> but this would be for all users valid) or rather differently by manipulating
> after the glade file has been loaded?
>
> Please excuse if this question has been raised and answered already, I
> couldn't find it.
>
> Thanks & Regards
>
> Günter
>

Hello,

You have to store the position and size of the window to a file before
it is closed/hidden. When your app is started, you read the file to
get the position and size of the window. Based on the information, you
move and resize the window appropriately before it is shown to the
user.

Cheers


More information about the Glade-users mailing list