Jump to content

Problems with Tabs


Scriptor
 Share

Recommended Posts

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.

 

Link to comment
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

Link to comment
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.
Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

Can you help me?

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...