API 文件集 > Custom user interface > Object ProUISpinbox > Function ProUISpinboxAnchorSet
Function ProUISpinboxAnchorSet
Description
Sets the position of the spinbox with respect to a given anchor location. This function is applicable only if the parent of the spinbox is a drawing area.
Synopsis
#include <ProUISpinbox.h>
ProUISpinboxAnchorSet
(
char* dialog
/* (In)
The name of the dialog that contains the spinbox.
*/
char* component
/* (In)
The name of the spinbox component.
*/
int x
/* (In)
X value with respect to the upper left corner of the parent.
*/
int y
/* (In)
Y value with respect to the upper left corner of the parent.
*/
/* (In)
Location on the spinbox used to set the position.
*/
)
Returns
The function succeeded.
The function failed.
One or more input arguments was invalid.
這是否有幫助?