+ -
当前位置:首页 → 问答吧 → perl Win32::GUI 问题

perl Win32::GUI 问题

时间:2010-09-26

来源:互联网

本帖最后由 mitmax 于 2010-09-26 16:24 编辑
  1. #!/usr/bin/perl -w
  2. use strict;
  3. use Data::Dumper;
  4. use Win32::GUI ();
  5. # 窗口名称和大小
  6. my $win = new Win32::GUI::Window(        
  7.     -name   => 'mainWindow',
  8.     -title  => 'Win32::GUI!',
  9.     -size   => [300, 200],
  10. );

  11. $win->AddRadioButton(
  12.   # -align   => "center",
  13.   -name => "repasswd",
  14.   -text => "记住密码",
  15.   -tabstop => 1,
  16.   -checked => 0,
  17.   -pos     => [70,80],
  18.   -size    => [70,25],
  19. );
  20. $win->Show();
  21. 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

热门下载

更多