Garrett19212 Posted July 15, 2005 Share Posted July 15, 2005 How can i make a backround image also show behind a label, instead of it just behind white behind the label. Link to comment Share on other sites More sharing options...
Valuater Posted July 15, 2005 Share Posted July 15, 2005 like this $my_GUI = guicreate("my Gui") $my_pic = guicreatepic("c:\...... Guictrlsetstate($my_pic, $GUI_DISABLE) good luck 8) Link to comment Share on other sites More sharing options...
Garrett19212 Posted July 15, 2005 Author Share Posted July 15, 2005 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. Link to comment Share on other sites More sharing options...
GaryFrost Posted July 15, 2005 Share Posted July 15, 2005 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 wantthen 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. Link to comment Share on other sites More sharing options...
Garrett19212 Posted July 15, 2005 Author Share Posted July 15, 2005 Didn't work, the color behind the labels are still grey. Link to comment Share on other sites More sharing options...
GaryFrost Posted July 15, 2005 Share Posted July 15, 2005 (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 ExitGet the image file here Edited July 15, 2005 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. Link to comment Share on other sites More sharing options...
Garrett19212 Posted July 15, 2005 Author Share Posted July 15, 2005 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. Link to comment Share on other sites More sharing options...
GaryFrost Posted July 15, 2005 Share Posted July 15, 2005 (edited) screen shot of actual test Edit: tested with 3.1.1 release version and beta, both work. Edited July 15, 2005 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. Link to comment Share on other sites More sharing options...
Garrett19212 Posted July 15, 2005 Author Share Posted July 15, 2005 Screenshot on my comp, i copied pasted your code in a new script, and put the pic in the same folder. Link to comment Share on other sites More sharing options...
GaryFrost Posted July 15, 2005 Share Posted July 15, 2005 what version are you using? SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Garrett19212 Posted July 15, 2005 Author Share Posted July 15, 2005 Version: 3.1.1.0 Date: April 6th, 2005 Link to comment Share on other sites More sharing options...
GaryFrost Posted July 15, 2005 Share Posted July 15, 2005 Version: 3.1.1.0Date: April 6th, 2005<{POST_SNAPBACK}>update to 3.1.1 SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Garrett19212 Posted July 15, 2005 Author Share Posted July 15, 2005 Hmm autoupdate says newest pub release is 3.1.1.0 Guess ill have to dl off site. Link to comment Share on other sites More sharing options...
GaryFrost Posted July 15, 2005 Share Posted July 15, 2005 I never trust autoupdate programs.http://www.autoitscript.com/autoit3/downloads.php SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Garrett19212 Posted July 15, 2005 Author Share Posted July 15, 2005 Nope, still doing it. Link to comment Share on other sites More sharing options...
Garrett19212 Posted July 15, 2005 Author Share Posted July 15, 2005 (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 July 15, 2005 by Garrett19212 Link to comment Share on other sites More sharing options...
Garrett19212 Posted July 15, 2005 Author Share Posted July 15, 2005 (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 July 15, 2005 by Garrett19212 Link to comment Share on other sites More sharing options...
GaryFrost Posted July 15, 2005 Share Posted July 15, 2005 Run the installer beta version.http://www.autoitscript.com/autoit3/files/...-beta-Setup.exe SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Garrett19212 Posted July 15, 2005 Author Share Posted July 15, 2005 Still isn't working... Link to comment Share on other sites More sharing options...
GaryFrost Posted July 15, 2005 Share Posted July 15, 2005 Might want to look into the SciTe editor also#71644 SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
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