phew Posted October 25, 2007 Share Posted October 25, 2007 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 More sharing options...
Nahuel Posted October 25, 2007 Share Posted October 25, 2007 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 More sharing options...
phew Posted October 25, 2007 Author Share Posted October 25, 2007 thanks, working now =) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now