Jump to content

GUICtrlCreateIcon and/or GUICtrlCreatePic

Recommended Posts

i want to place some pcitures or icon in the guicreat but i cant see the pic or icon how is that posible

#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 


$label = GUICtrlCreateLabel("onder constructie",50,50)

$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)
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()


Func GUI2Create()
If WinExists("gebouwen") then Return
    GUICtrlSetData($label, "Like this")
$2 = GUICreate("gebouwen",350,350)
GUISetState (@SW_SHOW)

Func Gui3create()
If WinExists("militair") then Return
$3 = GUICreate("militair",350,350)
GUISetState (@SW_SHOW)

Func Gui4create()
If WinExists("voertuigen") then Return
$4 = GUICreate("voertuigen",350,350)
GUISetState (@SW_SHOW)

Func gui5create()
If WinExists("onderzoek") then Return
$5 = GUICreate("onderzoek",350,350)
GUISetState (@SW_SHOW)

Func gui6create()
If WinExists("verdediging") then Return
$6 = GUICreate("verdediging",350,350)
GUISetState (@SW_SHOW)

Func gui7create()
If WinExists("overzicht") then Return
$7 = GUICreate("overzicht",350,350)
GUISetState (@SW_SHOW)

this better

Edited by Cloudsx
Link to post
Share on other sites

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

Not wasting our time, just hard to help sometimes if there is no code

try 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 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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...