Wacom API,标签上的 TextAlign 不起作用
Wacom API, TextAlign on labels not working
我正在使用带有签名 SDK v3.20.4 的 Wacom STU 530 signature tab。
我的问题是创建标签时的文本衬里。
/* We have this controller which was placed in a windows form
* It's that object that will mainly communicate with the Wacom tab
* It's already initialized, I'm showing this to just to show the type & name */
AxWizCtl WizCtl;
bool success = WizCtl.PadConnect()
if(isSuccess) {
//Here I create a label with center align
WizCtl.AddObject(ObjectType.ObjectText, id, x, y, text, TextOptions.TextAlignCenter);
//Here I display the newly added elements on the signature pad
WizCtl.Display();
}
问题是它永远不会对齐,无论我使用 TextOptions 中的哪种对齐方式。准确的说是默认左对齐显示。
文档说:
但是没用,不知道怎么办。
我联系了 Wacom 的开发人员支持并得到了答复。
I am sorry, but text alignment and click events are not implemented in the API even though they are documented in the manual.
所以对于今天来说,这个API是行不通的。
我正在使用带有签名 SDK v3.20.4 的 Wacom STU 530 signature tab。
我的问题是创建标签时的文本衬里。
/* We have this controller which was placed in a windows form
* It's that object that will mainly communicate with the Wacom tab
* It's already initialized, I'm showing this to just to show the type & name */
AxWizCtl WizCtl;
bool success = WizCtl.PadConnect()
if(isSuccess) {
//Here I create a label with center align
WizCtl.AddObject(ObjectType.ObjectText, id, x, y, text, TextOptions.TextAlignCenter);
//Here I display the newly added elements on the signature pad
WizCtl.Display();
}
问题是它永远不会对齐,无论我使用 TextOptions 中的哪种对齐方式。准确的说是默认左对齐显示。
文档说:
但是没用,不知道怎么办。
我联系了 Wacom 的开发人员支持并得到了答复。
I am sorry, but text alignment and click events are not implemented in the API even though they are documented in the manual.
所以对于今天来说,这个API是行不通的。