找回密码
 加入
搜索
查看: 6331|回复: 13

[图形处理] 请教au3中Button文字竖排

 火.. [复制链接]
发表于 2011-4-14 01:33:59 | 显示全部楼层 |阅读模式
$Button1 = GUICtrlCreateButton("计算", 168, 128, 25, 73)

请教一下,其中的这个“计算”按钮如果竖排呢?
 楼主| 发表于 2011-4-14 01:48:53 | 显示全部楼层
我明白了。选择BS_MULTILINE就是了。。。。
发表于 2011-4-14 01:49:05 | 显示全部楼层
我也很想知道。
发表于 2011-4-14 12:11:15 | 显示全部楼层
本帖最后由 小A 于 2011-4-14 12:12 编辑

回复 1# binghe


GUICreate('坚立按钮',500,500)
GUICtrlCreateButton('网' & @CRLF & '管' & @CRLF & '联' & @CRLF & '盟',100,100,80,100,0x2000)
GUISetState(@SW_SHOW)
While 1
        Sleep(1000)
WEnd

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2011-4-14 13:22:01 | 显示全部楼层
学习了,谢谢楼上的!
发表于 2011-4-15 10:33:53 | 显示全部楼层
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
GUICreate("按鈕豎排文字", 201, 201, 353, 278)
GUICtrlCreateButton("計算", 88, 32, 25, 81, $BS_MULTILINE)
GUISetState(@SW_SHOW)

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
        EndSwitch
WEnd
发表于 2011-4-15 10:50:11 | 显示全部楼层
不错 学习了
发表于 2011-4-15 20:40:10 | 显示全部楼层
哈哈,又学习一招了.
发表于 2011-4-15 21:25:58 | 显示全部楼层
学习了,呵呵,楼主加油
发表于 2012-5-19 19:08:57 | 显示全部楼层
正想知道!谢谢了!
发表于 2013-8-17 20:42:51 | 显示全部楼层
回复 10# liyi-softs

学习了,多谢!
发表于 2016-9-25 03:28:34 | 显示全部楼层
回复 6# binshiwo

按钮的宽度要控制才能显示 加上样式

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 615, 438, 192, 124)
$Button1 = GUICtrlCreateButton("按钮字体怎么打竖", 112, 80, 25, 329, $BS_MULTILINE)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg

                Case $GUI_EVENT_CLOSE
                        Exit
                Case $Button1
                        MsgBox(0, '', '你点击了按钮', 1)

        EndSwitch
WEnd
发表于 2016-9-25 08:14:31 | 显示全部楼层
收藏学习了
发表于 2016-9-25 10:59:41 | 显示全部楼层
还是样式方便些。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-4-26 10:32 , Processed in 0.074479 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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