On Windows, don't use a maximize box if the Windows is not resizable 
Author Message
 On Windows, don't use a maximize box if the Windows is not resizable

On Windows, if a window is not resizable (because of a call to wm
resizable), there is really no reason to have a maximize box or a
sizing frame.  In fact, it's better to omit them, because they suggest
to Windows users that the window can be resized, even though it can't.

The appended patch makes this change in Tk8.0p2.  It should also apply
to Tk8.1a2.

Ian Taylor

*** /5g/ian/tk8.0p2/win/tkWinWm.c       Fri Oct 31 12:57:07 1997
--- tkWinWm.c   Wed Apr 15 15:52:20 1998
*************** UpdateWrapper(winPtr)
*** 668,673 ****
--- 668,678 ----
            wmPtr->exStyle = EX_TOPLEVEL_STYLE;

+       if ((wmPtr->flags & WM_WIDTH_NOT_RESIZABLE)
+           && (wmPtr->flags & WM_HEIGHT_NOT_RESIZABLE)) {
+           wmPtr->style &= ~ (WS_MAXIMIZEBOX | WS_SIZEBOX);
+       }
         * Compute the geometry of the parent and child windows.

Sun, 01 Oct 2000 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Grab + wm (resizable) don't work under Windows NT

2. C5EE Browse Windows Not Maximizing Properely

3. Using Windows DLLs NOT Created in Clarion for Windows

4. maximizing windows in motif and windows

5. Oberon System 3 v2.3 for Windows screen won't maximize

6. Help: using hidden columns with columns resizable in a list box

7. Backquotes `somecommand` don't work on Windows (bug)

8. softice 4.05 windows xp - please don't nuke

9. what windows don't let to do

10. Upcoming Windows XP replaces win ME and 2k This looks bad don't it

11. PHP files don't work in Windows network drive

12. SWI Prolog: Windows 1.9.5: tty don't work


Powered by phpBB® Forum Software