Kbase 13946: Status or message area cut off on window maximize (sample)
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
Status or message area cut off on window maximize (sample)
Windows which have both a menu bar and a status bar (message area) may
truncate the status bar when the window is maximized. This can be
avoided by assigning:
MAX-HEIGHT = FULL-HEIGHT and MAX-WIDTH = FULL-WIDTH
*after* the window is made visible. The following example brings up
a window maximized properly under MSWindows.
DEFINE VARIABLE h_win AS WIDGET-HANDLE NO-UNDO.
DEFINE VARIABLE x AS CHARACTER NO-UNDO.
DO:
CREATE WINDOW h_win
ASSIGN TITLE = "Maximized Window"
HIDDEN = TRUE.
/* for FULL-HEIGHT and FULL-WIDTH to have valid values, the WINDOW
must be made visible. "FULL-" values are the correct maximized
height and width of the window. */
ASSIGN h_win:VISIBLE = TRUE
h_win:MAX-HEIGHT = h_win:FULL-HEIGHT
h_win:MAX-WIDTH = h_win:FULL-WIDTH
h_win:WINDOW-STATE = WINDOW-MAXIMIZED. /* end assign */
UPDATE x WITH FRAME y IN WINDOW h_win.
END.
Notes:
Motif doesn't respond to ASSIGN WINDOW-STATE = WINDOW-MAXIMIZED so
don't try to maximize a Motif window on initial display.
The Language Reference manual discusses the WINDOW-STATE attribute in
Appendix A.
Progress Software Technical Support Note # 13946