Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XtResizeWin(3x) — HP-UX 9.05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XtResizeWidget(1)

 

NAME

XtResizeWindow − resize a widget’s window. 

Synopsis

void XtResizeWindow(w)

    Widget w;

Inputs

wSpecifies the widget.  Must be of class Core or any subclass thereof. 

Description

XtResizeWindow() calls the Xlib function XConfigureWindow() to make the window of the specified widget match its Core width, height, and border_width fields.  XtResizeWindow() does not call the widget’s resize() method.  The call to XConfigureWindow() is done unconditionally because there is no way to tell (without a server query) whether the widget’s window already has the specified size. 

Usage

You should rarely need to call XtResizeWindow(), and should only call it from widget code.  Usually, a widget will call XtResizeWidget() to set size values in the widget’s fields and call XConfigureWindow().  You only need to use XtResizeWindow() when a widget’s core size fields have gotten out of sync with the window’s actual size (this will not happen if you follow standard geometry management procedures) and want to force the widget’s window to match the size specified in the widget’s fields.  In this case, XtResizeWindow() will not work, because it assumes that the widget’s fields and the window size are in sync and would decide that XConfigureWindow() does not need to be called. 

See Also

XtResizeWidget(1). 

Copyright O’Reilly & Assoc.  —  X Toolkit Intrinsics Reference Manual © O’Reilly & Associates

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026