【问题标题】:Wacom API, TextAlign on labels not workingWacom API,标签上的 TextAlign 不起作用
【发布时间】:2018-05-29 08:12:21
【问题描述】:

我将 Wacom STU 530 signature tab 与 Signature SDK v3.20.4 一起使用。

我的问题是创建标签时的文本衬里。

/* 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 中的哪种对齐方式。准确的说,默认是左对齐显示的。

文档说:

但它不起作用,我不知道该怎么办。

【问题讨论】:

标签: c# signaturepad wacom


【解决方案1】:

我联系了 Wacom 的开发人员支持并得到了答复。

很抱歉,即使在手册中记录了文本对齐和点击事件,API 中也没有实现它们。

所以就今天而言,用这个 API 是不可行的。

【讨论】:

    猜你喜欢
    • 2014-09-20
    • 2015-10-30
    • 2015-07-18
    • 1970-01-01
    • 1970-01-01
    • 2018-07-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多