Older Newer
Sat, 29 Apr 2017 16:19:00 . . . . SyneRyder [fixing typo]
Sat, 29 Apr 2017 16:15:00 . . . . SyneRyder [Adding see-also link to setCtlPixelPos]
Wed, 16 Apr 2003 12:16:50 . . . . SyneRyder


Changes by last author:

Added:
= setCtlPos =

== Syntax ==

:setCtlPos(int n, int x, int y, int w, int h)

== Arguments ==

:n

::The number of the user control to resize/reposition

:x

::The horizontal co-ordinate of the user control's new position (in DBUs)

:y

::The vertical co-ordinate of the user control's new position (in DBUs)

:w

::The new width of the user control (in DBUs)

:h

::The new height of the user control (in DBUs)

== Description ==

:This function repositions and resizes the user control with the index n. The values x, y represent the horizontal and vertical position and w, h the width and height of the user control. Set the value to -1 to use the default or last defined measurement. Don't forget that all measurements are set in DBUs (dialog box units).

== Example ==

<code>

setCtlPos(4, 230, 20, 40, 30);

setCtlPos(5, -1, -1, 50, -1); //change only the width of user control 5

</code>

== See Also ==

:setCtlPixelPos

== Comments ==

:Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.