Sign in to follow this  
Followers 0
Garrett19212

Labels

22 posts in this topic

How can i make a backround image also show behind a label, instead of it just behind white behind the label.

Share this post


Link to post
Share on other sites



like this

$my_GUI = guicreate("my Gui")

$my_pic = guicreatepic("c:\......

Guictrlsetstate($my_pic, $GUI_DISABLE)

good luck

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

I don't think thats what I need, i have a backround image, and i want it to also show behind the label, not create a specific backround image for the label.

Share this post


Link to post
Share on other sites

I don't think thats what I need, i have a backround image, and i want it to also show behind the label, not create a specific backround image for the label.

<{POST_SNAPBACK}>

Valuater basically gave you the what you needed

$my_GUI = guicreate("my Gui")

$my_pic = guicreatepic("c:\......

$my_lable = guicreatelabel("test",10,10,50,20,-1,$WS_EX_TRANSPARENT)

Guictrlsetstate($my_pic, $GUI_DISABLE)

you create your background image, then put what controls you want

then set the background to disabled, otherwise your controls won't work properly.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Didn't work, the color behind the labels are still grey.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

works for me, image attached:

#include <GuiConstants.au3>

GuiCreate("MyGUI", 392, 323)
$Pic = GUICtrlCreatePic(@ScriptDir & "\thinker_wall_1024x768.jpg",0,0,392,323)
$Label_1 = GuiCtrlCreateLabel("This is my label", 150, 200, 170, 60,-1,$WS_EX_TRANSPARENT)
GUICtrlSetState($Pic,$GUI_DISABLE)
GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
    ;;;
    EndSelect
WEnd
Exit

Get the image file here

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

i tested it, and yours didn't work.

Maybe it worked to you but maybe you don't understand what im asking.

Mine looks like yours, the grey box shows, i want the text to be on the backround image, with no grey box.

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

screen shot of actual test

Edit: tested with 3.1.1 release version and beta, both work.

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Screenshot on my comp, i copied pasted your code in a new script, and put the pic in the same folder.

Share this post


Link to post
Share on other sites

Version: 3.1.1.0

Date: April 6th, 2005

Share this post


Link to post
Share on other sites

Hmm autoupdate says newest pub release is 3.1.1.0

Guess ill have to dl off site.

Share this post


Link to post
Share on other sites

Nope, still doing it.

Share this post


Link to post
Share on other sites

#16 ·  Posted (edited)

Its not working, i have installed 3.11, using the uninstall first function, didn't work.

I have uninstalled it in add remove programs, then redownloaded the file and installed it, didn't work.

Tried restarting my computer didn't work.

edit- leme try beta.. like u posted.

edit- cant find where to dl beta.

Edited by Garrett19212

Share this post


Link to post
Share on other sites

#17 ·  Posted (edited)

Ok downloaded the beta, but how do i "install" it, its in a zip. And when I try to run a script, gives me a list of programs to open it with, tried choosing the autoit.exe, but just opens notepad.

-edit

Ah, didn't know there was a exe for the beta, though it was another older beta version, didn't notice cuz of the ..

Trying it now

Edited by Garrett19212

Share this post


Link to post
Share on other sites

Still isn't working...

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