同类产品
开发商产品
您还浏览过这些产品
|
Sapphire Buttons Utility
[产品编号:
10891 ] |
|
|
关于本产品的分类与介绍仅供参考,具体以商家网站介绍为准。
|
| 产品介绍 | 下 载 | 价格与授权 | 更新记录 | 开 发 商 |
Sapphire Buttons Utility可以帮助应用程序确认用户是否按下了一个按钮。根据所按的按钮,您可以执行一个指定的功能,或者是显示一个指定的屏幕。它还能帮助您的用户避免由于误按了一个系统应用程序的按钮而关掉原来的应用程序。
特征综述 About Feature
声明:本产品中文介绍为慧都控件网版权所有,未经慧都公司书面许可,严禁拷贝、转载!
Sapphire Buttons Utility具有以下功能,能够很方便的读取按钮状态:
该操作是如此简单的,您只需在您的程序中声明相应的DLL函数,然后在您需要的地方调用即可。下列示例展示了在VB.NET里一个简单的定时器是如何跟踪哪个按钮被按下的。
Private Sub tmrButtons_Tick(ByVal sender As System.Object, _ByVal e As System.EventArgs) Handles tmrButtons.Tick
Dim lButton As Integer
Dim lKey1 As Integer
Dim lKey2 As Integer
lButton = sButtons(1234567890, lKey1, lKey2)
If lButton = 0 Then
lblButton.Text = ""
Else
If lKey2 = 0 Then
lblButton.Text = ButtonName(lKey1)
Else
lblButton.Text = ButtonName(lKey1) & " (" & ButtonName(lKey2) & ")"
End If
End If
End Sub

- 检查按了哪个按钮
- 取得按钮的名字
- 启用和禁用系统按钮
该操作是如此简单的,您只需在您的程序中声明相应的DLL函数,然后在您需要的地方调用即可。下列示例展示了在VB.NET里一个简单的定时器是如何跟踪哪个按钮被按下的。
Private Sub tmrButtons_Tick(ByVal sender As System.Object, _ByVal e As System.EventArgs) Handles tmrButtons.Tick
Dim lButton As Integer
Dim lKey1 As Integer
Dim lKey2 As Integer
lButton = sButtons(1234567890, lKey1, lKey2)
If lButton = 0 Then
lblButton.Text = ""
Else
If lKey2 = 0 Then
lblButton.Text = ButtonName(lKey1)
Else
lblButton.Text = ButtonName(lKey1) & " (" & ButtonName(lKey2) & ")"
End If
End If
End Sub
更新时间:2008-2-29 | 录入时间:2006-5-25 | 编辑:liuzh | 审核:lianjl
慧都科技 版权所有 Copyright 2003-2008 Huidu LLC, All Rights Reserved.






