Global Control Functions Help:

Real API_Control_GetX (Real Control ID );

This function returns the X position of the control, relative to the parent window.

Return value:
This function returns the X position, in pixels.


Real API_Control_GetY (Real Control ID );

This function returns the Y position of the control, relative to the parent window.

Return value:
This function returns the Y position, in pixels.
Real API_Control_GetWidth (Real Control ID );

This function returns the width of the control.

Return value:
This function returns the width of the control, in pixels.
Real API_Control_GetHeight (Real Control ID );

This function returns the height of the control.

Return value:
This function returns the height of the control, in pixels.
Real API_Control_GetFocus ();

This function returns the Control ID of the control that has the keyboard focus.

Return value:
The Control ID of the focussed control, if any, or otherwise false (0).
Real API_Control_SetFocus (Real Control ID );

This sets the keyboard focus to the specified Control ID.

Return value:
false (0) when failed.
Real API_Control_SetPos (Real Control ID, Real X, Real Y);

This function changes the position of the control to the specified position.

Return value:
Returns true (1) when succesful, and false (0) when failed.
Real API_Control_SetPosSize (Real Control ID, Real X, Real Y, Real Width, Real Height);

This function changes the position and the size of a control.

Return value:
Returns true (1) when succesful, and false (0) when failed.
Real API_Control_SetSize (Real Control ID,Real Width, Real Height);

This function changes the size of a control.

Return value:
Returns true (1) when succesful, and false (0) when failed.
Real API_Control_Destroy (Real Control ID);

This function destroys a control.

Return value:
Returns true (1) when succesful, and false (0) when failed.
Real API_Control_GetHandle (Real Control ID);

This function returns the window handle assigned to a control.

Return value:
Returns the window handle when succesful, and false (0) when failed.
Real API_Control_SetText (Real Control ID, String Text);

This function changes the text of a control.

Return value:
Returns the window handle when succesful, and false (0) when failed.
String API_Control_GetText (Real Control ID);

This function returns the text of a control.

Return value:
The text of the control.
Real API_Control_Exists (Real Control ID);

This function checks wether a Control exists.

Return value:
Returns true (1) when the control exists, and false (0) when not.

Real API_Control_Enable (Real Control ID, Real Is Enabled);

This function enables or disables a control. (1 = enable, 0 = disable)

Return value:

If the window was previously disabled, the return value is true (1).
If the window was not previously disabled, the return value is false (0) .


Real API_Control_GetType (Real Control ID);

Returns the control type of a control.
See the control type numbers.

Return value:
The control type number or zero (0) when failed.
Real API_Control_GetTypeByClass (String Classname);

Returns the control type by specifying a classname.
See the control type numbers.

Return value:
The control type number or zero (0) when failed.
Real API_Control_Create (Real Control Type Number, Real Parent Handle, Real X, Real Y, Real Width, Real Height, Real Style Flags, Real Extended Style Flags);

This function creates a control by specifying a control type.

You have to see the control's documentation for the arguments.

Return value:
If this function succeeds, it returns the Control ID of the control, otherwise it returns 0.
Real API_Control_CreateID (Real Control Window Handle);

This function creates a Control ID for a control not created by this DLL.

Return value:
If this function succeeds, it returns the Control ID of the control, otherwise it returns 0.
Real API_Control_SetAutoTab (Real Tab Page Number);

This function assigns all controls created after this function call to a certain tab page.

Return value:
Always returns 1.

Real API_Control_Show (Real Window handle, Real Show flags );

This function changes the show state of a control.

Argument list:
(0) Control ID
(1) Show flags: One of the show flags.

Return value:

If the control was previously visible, the return value is nonzero.
If the control was previously hidden, the return value is zero.



Example code:

X = API_Control_GetX (Edit1);
Y = API_Control_GetY (Edit1);

Return to help index