setCtlPixelPos

Syntax

setCtlPixelPos(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 pixels)
y
The vertical co-ordinate of the user control's new position (in pixels)
w
The new width of the user control (in pixels)
h
The new height of the user control (in pixels)

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. With this function, all measurements are set in pixels - use setCtlPos if you want to use Dialog Box Units / DBUs instead.

Example

setCtlPixelPos(4, 230, 20, 40, 30);
setCtlPixelPos(5, -1, -1, 50, -1);   //change only the width of user control 5

See Also

setCtlPos

Comments

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