stumpf@lan.informatik.tu-muenchen.dbp.de (Markus Stumpf) (09/09/88)
Assume I have a square window 160x160 pxl and at the bottom of this window a message-box window 30x160 pxl. So the parent window of these two windows should be 190x160 pxl. That's the standard size. Now I like to allow an user to resize that parent window, but with the following conditions: - the square window should remain a square window - the square window may in/decrease by 16 pxl - the height of the message box should be 30 pxl, the width the same as that of the square window I tried the following setup for the parent window: sizehints.flags = PAllHints; sizehints.x = 0; sizehints.y = 0; sizehints.width = 160; sizehints.height = 160 + mbwinheight; sizehints.min_width = 80; sizehints.min_height = 80 + mbwinheight; sizehints.max_width = 800; sizehints.max_height = 800 + mbwinheight; sizehints.width_inc = 16; sizehints.height_inc = 16; sizehints.min_aspect.x = 1; sizehints.min_aspect.y = 1; sizehints.max_aspect.x = 1; sizehints.max_aspect.y = 1; and didn't get what I want! I think I didn't really understand, what these aspect is for and how to use it correctly. Maybe, it's a problem of the right windowmanager, but I tried it with uwm, twm (which doesn't seem to support incs and aspects at all) and awm, and none of the worked as I thought they should. (couldn't try the RTL of Siemens, can't ftp from here) Any help would be appreciated. Thanks in advance! \Maex +------------------------------------------------------------------------------+ | Markus Stumpf | | TU Muenchen local: lan.informatik.tu-muenchen.dbp.de | | Inst. f. Informatik DFN: stumpf@{local} | | Arcisstrasse UUCP: stumpf%{local}@unido.uucp | | D-8000 Muenchen ARPA/CS: stumpf%{local}@relay.cs.net | | West Germany BITNET: infrza02@dm0tui1s.bitnet | +------------------------------------------------------------------------------+