Sign in to follow this  
Followers 0
Scriptor

Problems with Tabs

8 posts in this topic

I have a problem with Tabs. I will create a gui with tabs. When I click on tab1, then show undertabs1.1, 1.2. But when i click on tab 1.1, then it's in first line.

P.S.: My English isn't good.

Share this post


Link to post
Share on other sites



I have a problem with Tabs. I will create a gui with tabs. When I click on tab1, then show undertabs1.1, 1.2. But when i click on tab 1.1, then it's in first line.

P.S.: My English isn't good.

That's all fine and good, but how about a script we can look at to be able to help you.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

This is what I written

CODE
Opt("GUIOnEventMode", 1)

#include <GUIConstants.au3>

$GUI_Main = GUICreate("...", 200, 200)

GUISetOnEvent($GUI_EVENT_CLOSE, "_close")

GUICtrlCreateTab(10, 10, 180, 180)

; Tab 1

$TAB_1 = GUICtrlCreateTabItem("Tab 1")

GUISwitch($GUI_Main, $TAB_1

; Tab 1.1

$TAB_1_1 = GUICtrlCreateTabItem("Tab 1.1")

; Fenster anzeigen

GUISetState(@SW_SHOW)

Func _close()

Exit

EndFunc ;==>_close

While 1

sleep(500)

WEnd

Share this post


Link to post
Share on other sites

This is what I written

CODE
Opt("GUIOnEventMode", 1)

#include <GUIConstants.au3>

$GUI_Main = GUICreate("...", 200, 200)

GUISetOnEvent($GUI_EVENT_CLOSE, "_close")

GUICtrlCreateTab(10, 10, 180, 180)

; Tab 1

$TAB_1 = GUICtrlCreateTabItem("Tab 1")

GUISwitch($GUI_Main, $TAB_1

; Tab 1.1

$TAB_1_1 = GUICtrlCreateTabItem("Tab 1.1")

; Fenster anzeigen

GUISetState(@SW_SHOW)

Func _close()

Exit

EndFunc ;==>_close

While 1

sleep(500)

WEnd

Can you explain what is the problem again? The code you posted works ok but you mention tab 1.2 which is not in the code. Have you missed something out?


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

There is a syntax error in this version so it cannot be the one you are testing with... but when fixing that error I dont see any problem with it ..

Maybe you can explain again what the problem is ?

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Can you help me?

Share this post


Link to post
Share on other sites

Can you help me?

Maybe but only if you can explain what your problem is because I don't understand your problem yet ... ;)

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

OK. I will programming a undertab in tab 1. The names of the undertabs is 1.1 & 1.2.

Example (for a programm from a friend):

Tab 1: Programs

Tab 1.1: Remove

Tab 1.2: Integrate

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0