Jump to content

Problem with GUICtrlCreatePic


 Share

Recommended Posts

Here are links, if you can't see

http://h.imagehost.org/0177/dgdte5.jpg

http://speed.travian.si/gpack/travian_default/img/g/iso.gif

EDIT: ok, thanks, the example 2 is what I was searching for.

Thanks for help.

Edited by DoctorSLO
Link to comment
Share on other sites

Try this.

#Include <GUIConstantsEx.au3>
#Include <Icons.au3>

GUICreate('MyGUI', 427, 355)
GUICtrlCreatePic('dgdte5.jpg', 0, 0, 427, 355)
GUICtrlSetState(-1, $GUI_DISABLE)
$Pic = GUICtrlCreatePic('', 0, 0, 75, 100)

_SetImage($Pic, 'iso.gif')

GUISetState()

Do
Until GUIGetMsg() = -3

Icons.au3

Link to comment
Share on other sites

I have one more problem :D

Here are pictures:

Posted Image

Posted Image

Links to pictures:

http://h.imagehost.org/0859/prob1.jpg

http://h.imagehost.org/0421/prob2.jpg

As you can see the pictures are now visible all the time when GUI is on. How can I disable this pictures, and enable only when tab "Zgradbe" (picture2) is opened?

I know I can use _GUICtrlTab_GetCurFocus or _GUICtrlTab_GetItemState, but How can I add this in loop?

I have this loop

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            _IEQuit($ie)
            Exit
        Case $autopoiscifarme
            poiscifarme()
        Case $zbrisi1
            funkcijazbrisi1()
        Case $zbrisi2
            funkcijazbrisi2()
        Case $zbrisi3
            funkcijazbrisi3()
        Case $dodaj1
            funkcijadodaj1()
        Case $dodaj2
            funkcijadodaj2()
        Case $dodaj3
            funkcijadodaj3()
        Case $add
            guidodajfarmo()
        Case $delete
            izbrisioznacenofarmo()
        Case $deleteallid
.
.
.
Edited by DoctorSLO
Link to comment
Share on other sites

You did't read all?

The problem is that this pictures are displayed all time, in all tabs, I want to show them only at one TAB

As you can see the pictures are now visible all the time when GUI is on. How can I disable this pictures, and enable only when tab "Zgradbe" (picture2) is opened?

EDIT: OK, I found how to do it.

Thx for help :D

Edited by DoctorSLO
Link to comment
Share on other sites

As you can see the pictures are now visible all the time when GUI is on. How can I disable this pictures, and enable only when tab "Zgradbe" (picture2) is opened?

I know I can use _GUICtrlTab_GetCurFocus or _GUICtrlTab_GetItemState, but How can I add this in loop?

I have this loop

Look here at my older answer for that type of question

http://www.autoitscript.com/forum/index.php?showtopic=72894&view=findpost&p=531772

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...