rambo3889 Posted December 5, 2006 Posted December 5, 2006 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! youre the best in town Fight!
Helge Posted December 5, 2006 Posted December 5, 2006 Prøv denne linjen etter Label. GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
BigDod Posted December 5, 2006 Posted December 5, 2006 #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 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
rambo3889 Posted December 5, 2006 Author Posted December 5, 2006 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! youre the best in town Fight!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now