Goto: 4C Home | 4C Docs | System PCLs List sys.get_clrect()

sys.get_clrect()

Purpose:
sys.get_clrect() returns the dimensions a single client control in system variables
Usage:
ret = sys.get_clrect(<controlid>);
Arguments:

alpha <controlid> - The name or type of the client control that you want to get the dimensions of.
Returns:
integer <ret>
0 - OK
-1 - Error
Where Used:
sys.get_clrect() can be called from anywhere as long as there is a current 4C window currently open on the client. Typically it would be used in order to determine where you want to display another layout, a messagebox, or a sys.get_answer() dialog.
Example:
The 4cSys program sys.pr.srch.1 uses sys.get_clrect() in the execdet() pcl to determine the upper left corner of the current layout and then it uses that position to set the position for the new program it is starting.
Description:
sys.get_clrect() returns the dimensions a single client control in system variables. The dimensions used are the same as those used by the client. For a win32 client, the dimenions are in pixels, while in a MacOS X Client, the dimensions are in points. The system variables that get the dimenasions are sys.rect_left, sys.rect_right, sys.rect_top, and sys.rect_bottom. Allowable values for <controlid> are:
Requirements
sys.get_clrect() requires version 5.2 or later for both the 4C server and the 4C client.
Bugs/Features/Comments:
Bugs
See Also:
Sys PCLs List


Back to Top