perl Win32::GUI 问题
时间:2010-09-26
来源:互联网
本帖最后由 mitmax 于 2010-09-26 16:24 编辑
复制代码
如何判断这个单选框是否选中
Creates a new Button object; can also be called as PARENT->AddButton(%OPTIONS). Class specific %OPTIONS are:
-align => left/center/right (default left)
-valign => top/center/bottom
-default => 0/1 (default 0)
-ok => 0/1 (default 0)
-cancel => 0/1 (default 0)
Events
Click()
Sent when the control is selected (eg. the button pushed, the checkbox checked, etc.).
DblClick()
Sent when the user double clicks on the control.
GotFocus()
Sent when the control is activated.
LostFocus()
Sent when the control is deactivated.
MouseDown()
Sent when the user down clicks on the control.
MouseUp()
Sent when the user releases a down click on the control.
这个官方的,看的不是很明白
- #!/usr/bin/perl -w
- use strict;
- use Data::Dumper;
- use Win32::GUI ();
- # 窗口名称和大小
- my $win = new Win32::GUI::Window(
- -name => 'mainWindow',
- -title => 'Win32::GUI!',
- -size => [300, 200],
- );
-
- $win->AddRadioButton(
- # -align => "center",
- -name => "repasswd",
- -text => "记住密码",
- -tabstop => 1,
- -checked => 0,
- -pos => [70,80],
- -size => [70,25],
- );
- $win->Show();
- Win32::GUI::Dialog();
如何判断这个单选框是否选中
Creates a new Button object; can also be called as PARENT->AddButton(%OPTIONS). Class specific %OPTIONS are:
-align => left/center/right (default left)
-valign => top/center/bottom
-default => 0/1 (default 0)
-ok => 0/1 (default 0)
-cancel => 0/1 (default 0)
Events
Click()
Sent when the control is selected (eg. the button pushed, the checkbox checked, etc.).
DblClick()
Sent when the user double clicks on the control.
GotFocus()
Sent when the control is activated.
LostFocus()
Sent when the control is deactivated.
MouseDown()
Sent when the user down clicks on the control.
MouseUp()
Sent when the user releases a down click on the control.
这个官方的,看的不是很明白
作者: mitmax 发布时间: 2010-09-26
看它的方法
作者: flw 发布时间: 2010-09-26
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28