Sign in to follow this  
Followers 0
DoctorSLO

Problem with GUICtrlCreatePic

12 posts in this topic

#1 ·  Posted (edited)

Hello.

I want to add this picture on GUI:

Posted Image

If I do this normally I get this:

Posted Image

So how can I remove this white space ?

Edited by DoctorSLO

Share this post


Link to post
Share on other sites



I cant find it :D

If I want to do this I must put in GUIcreate $WS_EX_LAYERED. But I don't want that you can see trough main window.

I only want this to do on picture.

Share this post


Link to post
Share on other sites

where are the pictures? I can't see them in ur 1st post


[font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

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

Share this post


Link to post
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

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