Panel Resize Event

Requires: Base Development System

Class: VI Events

Type: Notify

Generated when the user sizes the front panel by clicking and dragging the window frame, minimizes or maximizes the front panel, or restores the front panel to its original size from a maximized or minimized state.

Use this event when you want to perform computations necessary for resizing front panel objects or when you want to reduce computation and conserve display memory when the user minimizes the front panel. You can use the OldBnds and NewBnds event data field values to determine how the user resized the front panel.

Because LabVIEW may generate multiple Panel Resize events while you resize the window, LabVIEW generates a final event at the end of the resizing operation in which OldBnds and NewBnds return the same value. You can use the values to identify in the code when the sizing operation finishes.

Event Data Fields

NameDescription
SourceSource of the event. LabVIEW UI refers to any built-in user interface event.

0LabVIEW UI
TypeType of event that occurred, such as Mouse Down, Value Change, Timeout, and so on.
TimeValue of the millisecond timer when the event occurred.
VIRefReference to the VI on which this event occurred.
OldBndsReturns a cluster of coordinates in pixels that specify the location of the front panel before the user resized the front panel. Coordinates refer to the upper left and lower right position of the front panel.
NewBndsReturns a cluster of coordinates in pixels that specify the location of the front panel after the user resized the front panel. Coordinates refer to the upper left and lower right position of the front panel.
ActReturns the front panel action the user performed, such as Minimized, Maximized, or Resized.
PrevStateReturns the previous state of the front panel, such as Standard, Minimized, or Maximized.
  • Standard—The front panel window is open but is not minimized, maximized, or hidden.
  • Minimized—The front panel window is minimized.
  • Maximized—The front panel window is maximized.
A state of Standard or Maximized indicates that the front panel window is visible to the user.