Wacom Signature SDK 重新设计按钮

我使用的是带有 Signature SDK v3.20.4的Wacom STU 530 签名选项卡,文档似乎只在购买 SDK 时提供,因此我无法在此处提供链接,但您可以找到一些代码样品在这里。


我的问题是重新设计签名板上显示的按钮,我找不到方法。一些代码:


/* 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) {


    WizCtl.Font = new Font("Arial", 20, FontStyle.Bold);

    WizCtl.AddObject(ObjectType.ObjectButton, id, x, y, text, null);


    /* 

    * And now what? I can only change the font and dimensions.

    * How could I change things like the border or the color?

    * I don't even know how I can access the newly created object

    */


    WizCtl.Display();

}

而且我知道这一定是可能的,这个 SDK 有这个方法CaptureResult res = SigCtl.CtlCapture("who", "why");(SigCtl作为一个AxSigCtl对象)可以显示带有彩色按钮的预定义表单,但我想构建自己的。

http://img1.mukewang.com/60e022620001fbc112530843.jpg

此外,与字体更改不同,这不起作用:


AxWizCtl WizCtl;


bool success = WizCtl.PadConnect()


if(isSuccess) {


    WizCtl.Font = new Font("Arial", 20, FontStyle.Bold);

    WizCtl.BorderColor = Color.DarkOrange;

    WizCtl.BackColor = Color.HotPink;

    WizCtl.BorderWidth = 3;


    WizCtl.AddObject(ObjectType.ObjectButton, id, x, y, text, null);  


    WizCtl.Display();

}


墨色风雨
浏览 157回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP