|LabWindows/CVI 2010 Help|
|LabWindows/CVI 2012 Help|
|LabWindows/CVI 2013 Help|
|LabWindows/CVI 2015 Help|
|LabWindows/CVI 2017 Help||LabWindows/CVI 2020 Help|
int GetPanelEventRect (int eventData2, Rect *rectangle);
You can use this function, along with the SetPanelEventRect function, to restrict a panel from being sized or moved beyond the limits you set.
This function returns the panel bounds that includes the titlebar and frame. GetPanelAttribute and SetPanelAttribute with ATTR_TOP, ATTR_LEFT, ATTR_HEIGHT, and ATTR_WIDTH refer to the panel bounds not including the titlebar and frame. Use the panel attributes ATTR_TITLEBAR_ACTUAL_THICKNESS, ATTR_FRAME_ACTUAL_WIDTH, and ATTR_FRAME_ACTUAL_HEIGHT to go from one bounding rectangle to the other.
|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:
|status||int||Return value indicating whether the function was successful. A negative number indicates that an error occurred.|
Library: User Interface Library
Include file: userint.h
LabWindows/CVI compatibility: LabWindows/CVI 8.1 and later
Refer to the following examples that use the GetPanelEventRect function: