:hammer:hallo,
hab kleines Problem mit den tabs.
Beim Versuch, in einem der Tabs wieder drei unter- tabs einzubinden kam nur Bahnhof.
Muss ich da irgendwie einen container einbauen ?
Danke fuer die Hilfe
@Berti
tab + subtab
-
- [ gelöst ]
-
bertizwo -
8. Dezember 2006 um 21:51 -
Geschlossen -
Erledigt
-
-
- Offizieller Beitrag
Hi,
Spoiler anzeigen
[autoit][/autoit] [autoit][/autoit] [autoit]#include <GUIConstants.au3>
[/autoit] [autoit][/autoit] [autoit]$Main_Gui = GUICreate("My GUI Tab", 500, 500) ; will create a dialog box that when displayed is centered
[/autoit] [autoit][/autoit] [autoit]
$Child_Gui = GUICreate("Child Gui", 480, 460, 15, 35, BitOR($WS_CHILD, $WS_TABSTOP), -1, $Main_Gui)$child_tab = GUICtrlCreateTab(10, 10, 470, 450)
[/autoit] [autoit][/autoit] [autoit]
$c_tab0 = GUICtrlCreateTabItem("c_tab0")
$button = GUICtrlCreateButton("test button", 20, 40, 120, 25)
$c_tab1 = GUICtrlCreateTabItem("c_tab1")
GUICtrlCreateTabItem("") ; end tabitem definitionGUISwitch($Main_Gui)
[/autoit] [autoit][/autoit] [autoit]GUISetBkColor(0x00E0FFFF)
[/autoit] [autoit][/autoit] [autoit]
GUISetFont(9, 300)$tab = GUICtrlCreateTab(10, 10, 490, 490)
[/autoit] [autoit][/autoit] [autoit]$tab0 = GUICtrlCreateTabItem("tab0")
[/autoit] [autoit][/autoit] [autoit]
GUICtrlCreateLabel("label0", 30, 80, 50, 20)
$tab0OK = GUICtrlCreateButton("OK0", 20, 50, 50, 20)
$tab0input = GUICtrlCreateInput("default", 80, 50, 70, 20)$tab1 = GUICtrlCreateTabItem("tab----1")
[/autoit] [autoit][/autoit] [autoit]
GUICtrlCreateLabel("label1", 30, 80, 50, 20)
$tab1combo = GUICtrlCreateCombo("", 20, 50, 60, 120)
GUICtrlSetData(-1, "Trids|CyberSlug|Larry|Jon|Tylo", "Jon") ; default Jon
$tab1OK = GUICtrlCreateButton("OK1", 80, 50, 50, 20)$tab2 = GUICtrlCreateTabItem("tab2")
[/autoit] [autoit][/autoit] [autoit]
GUICtrlSetState(-1, $GUI_SHOW) ; will be display first
GUICtrlCreateLabel("label2", 30, 80, 50, 20)
$tab2OK = GUICtrlCreateButton("OK2", 140, 50, 50)$tab3 = GUICtrlCreateTabItem("tab3")
[/autoit] [autoit][/autoit] [autoit]GUICtrlCreateTabItem("") ; end tabitem definition
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]GUISetState()
[/autoit] [autoit][/autoit] [autoit]; Run the GUI until the dialog is closed
[/autoit]
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $tab
If GUICtrlRead($tab) = 3 Then
GUISetState(@SW_SHOW, $Child_Gui)
Else
GUISetState(@SW_HIDE, $Child_Gui)
EndIf
EndSelect
WEndSo long,
Mega
-
es klappt,
10 Minuten fuer eine top Antwort.
So hat man es gerne...... :stolz_bin:Hab mir deswegen vorher Stunden um die Ohren gehauen.
Schade, dass die GUI das noch nicht hinbekommt.
Oder etwa doch? -
- Offizieller Beitrag
Hi,
vom Prinzip alles richtig gemacht. Erst selbst probiert und dann gefragt.
Deine Frage verstehe ich nicht. Du meinst warum es nicht in einer GUI geht?
So long,
Mega
-
jo,
ich meinte eine GUI wie z.B. AutoITGUIBuilder, KODA FormDesigner.
Da funzioniert dat nich. -
- Offizieller Beitrag
Hi,
stimmt. Ich glaube in KODA auch nicht. Aber ansonsten sind die Dinger top.
So long,
Mega
P.S.: Ich mache auch ehrlich gesagt nie Tabs in Tabs.
-
vielen Dank noch mal an Mega.
Ich benutze dieses in einem Prograemmchen, das
saemtliche Soll-Einstellungen (Variablen & Arrays) an eine *.ini
übergibt.
Diese werden dann von einem zweitem Programm ausgewertet,
das dann entsprechend reagiert.
Plan B war, dass ich es in Flash mache. Aber jetzt klappt es ja auch so...Gruss @Berti
-
- Offizieller Beitrag
Hi,
kein Problem. Warum machst du es in zwei Programmen? Klingt so, als könne man auch eins draus machen.
So long,
Mega
-
... wird mir sonst zu wuselig.
Die Einstellungen macht man ja auch nicht immer und ueberall.
Wie sagten die alten Römer?" TEILE UND HERRSCHE " :tassen:
usw.. @Berti