我使用的是帶有 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對象)可以顯示帶有彩色按鈕的預定義表單,但我想構建自己的。此外,與字體更改不同,這不起作用: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();}
- 1 回答
- 0 關注
- 184 瀏覽
添加回答
舉報
0/150
提交
取消