找回密码
 加入
搜索
查看: 3582|回复: 5

[AU3基础] 为何别人做的form里面的lable和input和button可以用Tab键切换(已解决)

  [复制链接]
发表于 2010-8-28 16:02:23 | 显示全部楼层 |阅读模式
本帖最后由 faceyao 于 2010-8-29 10:12 编辑

而我建的form只能通过鼠标点来点去来切换到下一个input,

也就是不能通过键盘的Tab切换到本控件
发表于 2010-8-28 18:10:19 | 显示全部楼层
主窗口建立时加个样式$WS_TABSTOP,就能切换了
 楼主| 发表于 2010-8-28 22:19:05 | 显示全部楼层
回复 2# 飘云

应该不是这个原因,试过了,按照上面写仍然不行的
发表于 2010-8-28 22:20:22 | 显示全部楼层
回复 3# faceyao


    把你的整个脚本源码贴出来看才知道原因。
 楼主| 发表于 2010-8-29 10:12:12 | 显示全部楼层
回复 4# xsjtxy

奇怪,我现在试了又可以了
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$Form1 = GUICreate("Form1", 613, 435, 192, 132)
$Button1 = GUICtrlCreateButton("Button1", 224, 320, 161, 49)
$Input1 = GUICtrlCreateInput("Input1", 16, 24, 209, 24)
$Input2 = GUICtrlCreateInput("Input2", 104, 96, 225, 24)
$Input3 = GUICtrlCreateInput("Input3", 200, 168, 241, 24)
GUISetState(@SW_SHOW)


While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit

        EndSwitch
WEnd
发表于 2014-9-14 18:35:45 | 显示全部楼层
$WS_TABSTOP很管用,以测试
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-18 14:13 , Processed in 0.084915 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表