Resize

Description

Occurs when the user or a script opens or resizes the client area of a window or DataWindow control.

Event ID

Event ID

Objects

pbm_dwnresize

DataWindow

pbm_size

Window


Arguments

Argument

Description

sizetype

UnsignedLong by value. The values are:

  • 0 -- (SIZE_RESTORED) The window or DataWindow has been resized, but it was not minimized or maximized. The user might have dragged the borders or a script might have called the Resize function.

  • 1 -- (SIZE_MINIMIZED) The window or DataWindow has been minimized.

  • 2 -- (SIZE_MAXIMIZED) The window or DataWindow has been maximized.

  • 3 -- (SIZE_MAXSHOW) This window is a pop-up window and some other window in the application has been restored to its former size (does not apply to DataWindow controls).

  • 4 -- (SIZE_MAXHIDE) This window is a pop-up window and some other window in the application has been maximized (does not apply to DataWindow controls).

newwidth

Integer by value (the width of the client area of a window or DataWindow control in PowerBuilder units).

newheight

Integer by value (the height of the client area of a window or DataWindow control in PowerBuilder units).


Return Values

Long.

Return code choices (specify in a RETURN statement):

0 -- Continue processing