Sign in to follow this  
Followers 0
rambo3889

Pic, Label in same coords

4 posts in this topic

Hey there

In school me and 3 friends in our biology class were told to prepare a talk about earth / Ground and we were allowed to make it in MS powerpoint, but since the schools computers take 2 mins to launch PP we decided to try to make it in autoit, so i was told to make it as home work ( Crap ;) ), but now im stocked, i know if i create a picture and a button which is over the picture it will make some errors but if i set the state of the pic to disable then it will work fine , so i thought same rules are counting on labels and kinda yes it is but there is just one thing i would like to improve and that is : I need the pic to be as a background image , and a label were there stands biology ( already made in the code below) but the problem is : If i create the label then a grey square is made with the labels text inside , my question is it is possible to just get the text not the grey square ?, i've already readed through the help file without any results.

#include <GUIconstants.au3>
$path=@WindowsDir&"\system32\oobe\images\wpaback.jpg"
GUICreate("",500,500)
$a=GUICtrlCreatePic($path,0,0,500,500)
GUICtrlSetState($a,$GUI_DISABLE)
GUICtrlCreateLabel("Biology",100,0,-1,-1)
GUISetState()

While GUIGetMsg() <> -3
    
    WEnd

My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!

Share this post


Link to post
Share on other sites



#include <GUIConstants.au3>

$path=@WindowsDir&"\system32\oobe\images\wpaback.jpg"
GUICreate("",500,500)
$a=GUICtrlCreatePic($path,0,0,500,500)
GUICtrlSetState($a,$GUI_DISABLE)
GUICtrlCreateLabel("Biology",100,0,-1,-1)
GUICtrlSetBkColor(-1,$GUI_BKCOLOR_TRANSPARENT)
GUISetState()

While GUIGetMsg() <> -3
    
    WEnd



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Mange tak helge det hjalp


My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!

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