MakeFire 发表于 2010-6-18 14:45:39

如何创建一个横向的标签

GUICtrlCreateTab可以创建一个竖向的标签控件,怎么做可以创建一个横向的的标签?请不吝赐教,谢谢!!!

水木子 发表于 2010-6-18 14:56:41

何为 “横向的的标签” 能描述清楚些吗? 要不就截个图吧!

MakeFire 发表于 2010-6-18 15:30:59

就是这个样子,但是字怎
么也翻了个个儿。。

jybb001 发表于 2010-6-18 17:15:07

http://www.autoitx.com/forum.php?mod=viewthread&tid=9324&fromuid=7641265

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

yejier1983 发表于 2010-6-18 18:38:57

新手路过,先标记一下

rikthhpgf2005 发表于 2010-6-18 20:32:28

这样也可以,,

rikthhpgf2005 发表于 2010-6-19 07:53:31

nxbigdaddy 发表于 2010-6-19 10:18:36

楼上,这个是怎么弄的呀,我也想知道!

chenronting 发表于 2010-6-19 11:02:13

相当的厉害哈。 学习了。

zcx880517 发表于 2010-6-25 09:29:57

多看看帮助文件吧,,

newuser 发表于 2010-6-25 10:39:18

回复 1# MakeFire
你说反了吧!默认就是横向显示,如楼下加$TCS_VERTICAL样式,就竖了 .

rikthhpgf2005 发表于 2010-6-25 19:00:30

回复 8# nxbigdaddy


    字体选时找前面带@

xsjtxy 发表于 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

xsjtxy 发表于 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

MakeFire 发表于 2010-6-29 12:43:06

回复 13# xsjtxy


    13楼的方法也只是让字体垂直显示,不知道有没有方法可以让字水平显示的。
页: [1] 2
查看完整版本: 如何创建一个横向的标签