LabWindows/CVI 2017 Help

Edition Date: May 2017

Part Number: 370051AG-01

»View Product Info

DOWNLOAD (Windows Only)
LabWindows/CVI 2010 Help
LabWindows/CVI 2012 Help
LabWindows/CVI 2013 Help
LabWindows/CVI 2015 Help
LabWindows/CVI 2017 Help

int SetPanelEventRect (int eventData2, Rect rectangle);


Changes the size or position of the panel that is being sized or moved. Call this function when you receive an EVENT_PANEL_SIZING or EVENT_PANEL_MOVING event in a panel callback.

You can use this function, along with the GetPanelEventRect function, to restrict a panel from being sized or moved beyond the limits you set.


Name Type Description
eventData2 int The value of the panel callback's eventData2 parameter.
rectangle Rect Rect structure specifying the location and size of the panel.

The Rect structure is defined as follows:

typedef struct
   int top;
   int left;
   int height;
   int width;
   } Rect;

Return Value

Name Type Description
status int Return value indicating whether the function was successful. A negative number indicates that an error occurred.

Additional Information

Library: User Interface Library

Include file: userint.h

LabWindows/CVI compatibility: LabWindows/CVI 8.1 and later


Refer to userint\events.cws for an example of using the SetPanelEventRect function.

Open example


Not Helpful