Sign in to follow this  
Followers 0
tempman

No buttons, labels or inputs

3 posts in this topic

Hi,

I didn't use AutoIt for a while. I know that this code below worked in a previous versions

#NoTrayIcon
#include <GuiConstants.au3>
#include <File.au3>
#include <WindowsConstants.au3>

; GUI
GuiCreate("Title", 340, 300)
GUISetOnEvent(-3,"close")
$helpmenu = GuiCtrlCreateMenu ("Help")
$aboutitem = GuiCtrlCreateMenuitem ("Author",$helpmenu)

; TAB
GuiCtrlCreateTab(5, 5, 330, 250)
GuiCtrlCreateTabItem("Search")
#Region ; Tab 1 Items ;
$button_1 = GUICtrlCreateButton ("...", 275, 90, 20, 20)
$button_2 = GUICtrlCreateButton ("Find", 190, 190, 120, 40)
$group_2 = GUICtrlCreateGroup ("Parameters", 30, 60, 280, 100)
GUIStartGroup()
GUICtrlCreateLabel ("Debug Log:", 40, 90)
GUICtrlCreateLabel ("Nick:", 40, 120)
$skypelog = GUICtrlCreateInput ("", 150, 90, 120, 20)
$skypenick1 = GUICtrlCreateInput ("", 150, 120, 120, 20)
$PATH = ""
#EndRegion ; Tab 1 Items;

GuiSetState()

While 1
$msg = GUIGetMsg()

Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop

Case $msg = $button_1
Msgbox(0,"Something","Something")
Case $msg = $button_2
Msgbox(0,"Something","Something")
Case $msg = $aboutitem
Msgbox(0,"Something","Something")
EndSelect

WEnd

Func close ()
Exit
EndFunc

GUIDelete()
Exit

but in v3.3.8.1 it doesn't show any buttons, labels or inputs

Any hint?

Share this post


Link to post
Share on other sites



Your have forgotten to close the creation of Tab items.

insert

GUICtrlCreateTabItem("")

before this line

$PATH = ""


"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Thank you!

:graduated:

Edited by tempman

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