Cloudsx Posted February 22, 2006 Share Posted February 22, 2006 (edited) i want to place some pcitures or icon in the guicreat but i cant see the pic or icon how is that posible expandcollapse popup#include <GUIConstants.au3> GUICreate("game",350,400); will create a dialog box that when displayed is centered GUISetState (@SW_SHOW); will display an empty dialog GUICtrlCreateIcon("Cash.jpg",-1,200,150,20,20) GUICtrlCreateIcon("iron.jpg",-1,250,150,20,20) GUICtrlCreateIcon("ederuim.jpg",-1,300,150,20,20) GUICtrlCreateIcon("electricity.jpg",-1,330,150,20,20) $label = GUICtrlCreateLabel("onder constructie",50,50) Opt("GUICoordMode",4) $gebouwen = GUICtrlCreateButton("gebouwen",290,100,60) $militair = GUICtrlCreateButton("militair",290,125,60) $voertuigen = GUICtrlCreateButton("voertuigen",290,150,60) $onderzoek = GUICtrlCreateButton("onderzoek",290,175,60) $verdediging = GUICtrlCreateButton("verdediging",290,200,61) $overzicht = GUICtrlCreateButton("overzicht",290,225,60) GUISetState ();this wil create a button Dim $2, $3, $4, $5, $6, $7 While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then If WinActive("game") then Exit If WinActive("gebouwen") then GUIDelete( $2) If WinActive("militair") then GUIDelete( $3) if WinActive("voertuigen") then GUIDelete( $4) If WinActive("onderzoek") then GUIDelete( $5) If WinActive("verdediging") then GUIDelete( $6) If WinActive("overzicht") then GUIDelete($7) EndIf if $msg = $gebouwen Then GUI2Create() If $msg = $militair then Gui3create() if $msg = $voertuigen then Gui4create() If $msg = $onderzoek then Gui5create() If $msg = $verdediging then gui6create() If $msg = $overzicht then Gui7create() Wend Func GUI2Create() If WinExists("gebouwen") then Return GUICtrlSetData($label, "Like this") $2 = GUICreate("gebouwen",350,350) GUISetState (@SW_SHOW) EndFunc Func Gui3create() If WinExists("militair") then Return $3 = GUICreate("militair",350,350) GUISetState (@SW_SHOW) EndFunc Func Gui4create() If WinExists("voertuigen") then Return $4 = GUICreate("voertuigen",350,350) GUISetState (@SW_SHOW) EndFunc Func gui5create() If WinExists("onderzoek") then Return $5 = GUICreate("onderzoek",350,350) GUISetState (@SW_SHOW) EndFunc Func gui6create() If WinExists("verdediging") then Return $6 = GUICreate("verdediging",350,350) GUISetState (@SW_SHOW) EndFunc Func gui7create() If WinExists("overzicht") then Return $7 = GUICreate("overzicht",350,350) GUISetState (@SW_SHOW) EndFunc this better Edited February 22, 2006 by Cloudsx Link to comment Share on other sites More sharing options...
GaryFrost Posted February 22, 2006 Share Posted February 22, 2006 i want to place some pcitures or icon in the guicreat but i cant see the pic or icon how is that posible Hard to help with out some code to look at 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 More sharing options...
Valuater Posted February 22, 2006 Share Posted February 22, 2006 New to AutoIt ? A Great Place To Start:==> Welcome to AutoIt 1-2-3 <==8) Link to comment Share on other sites More sharing options...
Cloudsx Posted February 22, 2006 Author Share Posted February 22, 2006 i am sorry never think about you all get grazy from me i am very sorry no worry i wil find out about how it must be sorry for you time wasting Link to comment Share on other sites More sharing options...
GaryFrost Posted February 22, 2006 Share Posted February 22, 2006 i am sorry never think about you all get grazy from me i am very sorryno worry i wil find out about how it must be sorry for you time wasting Not wasting our time, just hard to help sometimes if there is no codetry using GuiCtrlCreatePic, don't think GUICtrlCreateIcon can show jpgs 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 More sharing options...
Cloudsx Posted February 22, 2006 Author Share Posted February 22, 2006 (edited) oke but its al over i did somehing wrong and now i have other problem with iniread so i am tryng to make screen shot off it and to show but dont know how i will try Edited February 22, 2006 by Cloudsx 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