Resize

Description

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

PowerBuilder event information Event ID: pbm_dwnresize

Argument

Description

sizetype

UnsignedLong by value.

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

  • 1 – (SIZE_MINIMIZED) The DataWindow has been minimized.

  • 2 – (SIZE_MAXIMIZED) The DataWindow has been maximized.

newwidth

Integer by value. The width of the client area of the DataWindow control in pixels.

newheight

Integer by value. The height of the client area of the DataWindow control in pixels.

Web ActiveX event information Event name: onResize

Argument

Description

SizeType

Number.

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

  • 1 – (SIZE_MINIMIZED) The DataWindow has been minimized.

  • 2 – (SIZE_MAXIMIZED) The DataWindow has been maximized.

NewWidth

Number. The width of the client area of the DataWindow control in pixels.

NewHeight

Number. The height of the client area of the DataWindow control in pixels.

Returns

There are no special outcomes for this event. The only code is: