Remarks
• Once you position a control in pixel, you have to make all other adjustments in pixels too, i.e.
you cannot change between "pixel" and "grid" mode for a specific control.
•
move_control_px()
can be used in the init and other callbacks.
• Note that the usage of
move_control_px()
in other callbacks than the init callback is more
CPU
intensive, so handle with care.
•
move_control_px(
,66,2)
equals
move_control(variable>,1,1)
Examples
on init
declare ui_label $label (1,1)
set_text ($label,"Move the wheel!")
move_control_px ($label,66,2)
end on
on controller
if ($CC_NUM = 1)
move_control_px ($label,%CC[1]+66,2)
end if
end on
Transform CC values into pixel. This might be useful for reference.
See Also
move_control()
$CONTROL_PAR_POS_X
$CONTROL_PAR_POS_Y
Do'stlaringiz bilan baham: