找回密码
 加入
搜索
查看: 7546|回复: 16

[AU3基础] 如何创建一个横向的标签

 火.. [复制链接]
发表于 2010-6-18 14:45:39 | 显示全部楼层 |阅读模式
GUICtrlCreateTab可以创建一个竖向的标签控件,怎么做可以创建一个横向的的标签?请不吝赐教,谢谢!!!
发表于 2010-6-18 14:56:41 | 显示全部楼层
何为 “横向的的标签” 能描述清楚些吗? 要不就截个图吧!
 楼主| 发表于 2010-6-18 15:30:59 | 显示全部楼层
就是这个样子,但是字怎
么也翻了个个儿。。

本帖子中包含更多资源

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

×
发表于 2010-6-18 17:15:07 | 显示全部楼层
http://www.autoitx.com/forum.php ... amp;fromuid=7641265

$Tab1 = GUICtrlCreateTab(104, 96, 305, 153,$TCS_VERTICAL)

评分

参与人数 1贡献 +2 收起 理由
lynfr8 + 2

查看全部评分

发表于 2010-6-18 18:38:57 | 显示全部楼层
新手路过,先标记一下
发表于 2010-6-18 20:32:28 | 显示全部楼层
这样也可以,,
发表于 2010-6-19 07:53:31 | 显示全部楼层

本帖子中包含更多资源

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

×
发表于 2010-6-19 10:18:36 | 显示全部楼层
楼上,这个是怎么弄的呀,我也想知道!
发表于 2010-6-19 11:02:13 | 显示全部楼层
相当的厉害哈。 学习了。
发表于 2010-6-25 09:29:57 | 显示全部楼层
多看看帮助文件吧,,
发表于 2010-6-25 10:39:18 | 显示全部楼层
回复 1# MakeFire
你说反了吧!默认就是横向显示,如楼下加$TCS_VERTICAL样式,就竖了 .

评分

参与人数 1金钱 +12 收起 理由
lynfr8 + 12

查看全部评分

发表于 2010-6-25 19:00:30 | 显示全部楼层
回复 8# nxbigdaddy


    字体选时找前面带@

评分

参与人数 1金钱 +16 收起 理由
lynfr8 + 16

查看全部评分

发表于 2010-6-25 21:14:22 | 显示全部楼层
#include <GUIConstantsEx.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>

GUICreate("")


$tab=GUICtrlCreateTab (10,10, 300, 300,$TCS_VERTICAL + $TCS_BOTTOM)
GUICtrlSetFont(-1, 20, 400, 0, "@宋体")
$tab0=GUICtrlCreateTabitem  ("第一个")
$tab1=GUICtrlCreateTabitem ( "第二个")
$tab2=GUICtrlCreateTabitem ("第三个")
GUISetState ()


While 1
    $msg = GUIGetMsg()
   
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend
发表于 2010-6-25 21:46:59 | 显示全部楼层
比较笨的
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 623, 449, 192, 114)
$Tab1 = GUICtrlCreateTab(85, 30, 530, 410)
$Button1 = GUICtrlCreateButton("星期一", 10, 32, 73, 33)
$Button2 = GUICtrlCreateButton("星期二", 10, 65, 73, 33)
$Button3 = GUICtrlCreateButton("星期三", 10, 98, 73, 33)
$Button4 = GUICtrlCreateButton("星期四", 10, 131, 73, 33)
$Button5 = GUICtrlCreateButton("星期五", 10, 164, 73, 33)
$Button6 = GUICtrlCreateButton("星期六", 10, 197, 73, 33)
$Button7 = GUICtrlCreateButton("星期日", 10, 230, 73, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

        EndSwitch
WEnd
 楼主| 发表于 2010-6-29 12:43:06 | 显示全部楼层
回复 13# xsjtxy


    13楼的方法也只是让字体垂直显示,不知道有没有方法可以让字水平显示的。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-4 22:36 , Processed in 0.094048 second(s), 30 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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