RE: resizing a window

[email protected] Thu, 23 Jan 2003 10:04:07 -0000
Newsgroups gmane.comp.video.gimp.windows.devel
Message-ID <B1F38D7B53615140BCEA6677DF9F2F8C011111E3@i2km11-ukbr.domain1.systemhost.net>

> -----Original Message-----
> From: Tor Lillqvist [mailto:[email protected]]
> Sent: 22 January 2003 21:38
> To: [email protected]
> Subject: [gimpwin-dev] resizing a window
> 
> 
> [email protected] writes:
>  > If I attempt to resize a window which I have set to be 
> fixed in size, the
>  > window does not resize and remains fixed, but there is a 
> resize icon when I
>  > move the mouse over the limits of the window's border.  
> This gives the wrong
>  > impression that the window can be resized.
>  > 
>  > Can this be fixed?
> 
> What GTK+ version?
> 

The latest from your site: GTK ver 2.2.0.

> Try calling gdk_window_set_decorations (window, 
> GDK_DECOR_ALL|GDK_DECOR_RESIZEH|GDK_DECOR_MAXIMIZE). 
> 
> I'm not sure if this is implemented correctly in the GDK DLL in the
> latest GTK+ 1.3.0 build, but it should be in the latest GTK+ 2.2.0
> build.
> 
> Do I interpret you correctly that you want that if you have set the
> window geometry hints for min and max size, the resizedecorations
> should automatically not be shown? Do X11 window managers work like
> this?

The best example is with a dialog window, which has no resizing available to
it (i.e. gtk_window_set_resizable(GTK_WINDOW(mywindow), FALSE)...).  Under
X11 only the close ('X') button is shown, now minimise or maximise.  Under
windows, the same window, has ALL three buttons visible and they can all be
clicked.  The maximise button puts the window in position 0,0 on the screen
(i.e. top left).  The minimise button does as it should.

Now, under X11 with a window (which does not employ the GTK_DIALOG()
feature) there is a minimise and a close button.  On windows the same window
has all three buttons available again (same effects when pressing minimise,
maximise and close as before).

Not only this but the application menu (accessed by the icon in the top left
of the window - or Alt+Space) has 'size' as a menu option which shouldnt
happen, when trying to resize, interesting things happen, although it does
not resize.  I presume that if the minimise and maximise buttons were set
correctly the menu would also reflect these changes.

One other thing to note is that double clicking the titlebar will maximise
the window, which happens to my unsizeable window - just another thing to
look out for.

Regards,
Martyn

> 
> --tml
> 
> 
> 
> ------------------------ Yahoo! Groups Sponsor 
> ---------------------~-->
> Flexible Keyboard is the ideal accessory for PDA users that 
> are on the move.
> http://us.click.yahoo.com/dCBVZC/WnCFAA/xGHJAA/NhFolB/TM
> --------------------------------------------------------------
> -------~->
> 
> To Post a message, send it to:   [email protected]
> To Unsubscribe, send a blank message to: 
> [email protected] 
> 
> Your use of Yahoo! Groups is subject to 
> http://docs.yahoo.com/info/terms/ 
> 
> 
> 

To Post a message, send it to:   [email protected]
To Unsubscribe, send a blank message to: [email protected] 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/