Cicode Programming Reference > Cicode Function Categories > Form Functions Introduction > FormPosition


Sets the position of a form on the screen, before it is displayed. You should call this function only after the FormNew() function and before the FormRead() function.


FormPosition(X, Y, Mode)

X, Y:

The x and y pixel coordinates of the form.


Not used, set it to 0.

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

FormNew, FormRead


hForm = FormNew("title", 20, 5, 0);
! display form at x=100, y=50
FormPosition(100, 50, 0);

See Also

Form Functions