Jump to content

TabItem problems


phew
 Share

Recommended Posts

GUICreate("test", 350, 200)
GUISetState(@SW_SHOW)
GUISetFont(8, 800, "", "")

FileInstall("head.jpg", @TempDir & "head.jpg", 1)
GUICtrlCreatePic(@TempDir & "\head.jpg", 1, 20, 348, 40)
$pattern = GUICtrlCreateInput("pattern", 1, 1, 72, 18)
$rfi = GUICtrlCreateInput("path", 73, 1, 72, 18)
$gogoogle = GUICtrlCreateButton("scan", 146, 1, 45, 18)
$clear = GUICtrlCreateButton("clear", 192, 1, 45, 18)
$setclip = GUICtrlCreateButton("copy", 238, 1, 45, 18)
$quit = GUICtrlCreateButton("quit", 284, 1, 65, 18)

$tab0 = GUICtrlCreateTab(1, 61, 350, 140)
$tab1 = GUICtrlCreateTabItem("results")
$debug = GUICtrlCreateEdit("", 3, 82, 344, 115)
$tab2 = GUICtrlCreateTabItem("options")
$tab3 = GUICtrlCreateTabItem("misc")
$tab4 = GUICtrlCreateTabItem("credits")

there is a problem with:

$tab1 = GUICtrlCreateTabItem("results")
$debug = GUICtrlCreateEdit("", 3, 82, 344, 115)

the $debug is not displayed when i start the script, but it will become visible after switching to another tab and then back to $tab1. why isn't the Edit "$debug" displayed on $tab1 immediately after starting the script?

some help pls

Link to comment
Share on other sites

Make it show the GUI after you create all its components:

GUICreate("test", 350, 200)
GUISetFont(8, 800, "", "")

FileInstall("head.jpg", @TempDir & "head.jpg", 1)
GUICtrlCreatePic(@TempDir & "\head.jpg", 1, 20, 348, 40)
$pattern = GUICtrlCreateInput("pattern", 1, 1, 72, 18)
$rfi = GUICtrlCreateInput("path", 73, 1, 72, 18)
$gogoogle = GUICtrlCreateButton("scan", 146, 1, 45, 18)
$clear = GUICtrlCreateButton("clear", 192, 1, 45, 18)
$setclip = GUICtrlCreateButton("copy", 238, 1, 45, 18)
$quit = GUICtrlCreateButton("quit", 284, 1, 65, 18)

$tab0 = GUICtrlCreateTab(1, 61, 350, 140)
$tab1 = GUICtrlCreateTabItem("results")
$debug = GUICtrlCreateEdit("", 3, 82, 344, 115)
$tab2 = GUICtrlCreateTabItem("options")
$tab3 = GUICtrlCreateTabItem("misc")
$tab4 = GUICtrlCreateTabItem("credits")
GUISetState(@SW_SHOW)
While 1
    Sleep(100)
WEnd
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...