LabWindows/CVI

Content Type
Programming Language
Current manual

SetPanelEventRect

SetPanelEventRect

int SetPanelEventRect (int eventData2, Rect rectangle);

Purpose

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.

Parameters

Input
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

Example

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

Was this information helpful?