【发布时间】:2018-05-25 09:58:50
【问题描述】:
我正在使用带有签名 SDK v3.20.4 的Wacom STU 530 signature tab,文档似乎仅在购买 SDK 时提供,因此我无法在此处提供链接,但您可以找到一些代码示例here。
我的问题是关于重新设置签名板上显示的按钮的样式,我不知道怎么做。一些代码:
/* 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 对象)可以显示带有彩色按钮的预定义表单,但我想构建自己的。
(这里的按钮是蓝色的,而使用AddObject 创建的按钮是白色的)
此外,与字体更改不同,这不起作用:
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();
}
【问题讨论】:
-
好吧,在研究和查看示例项目之后,这似乎是不可能的:/
标签: c# signaturepad wacom