tlokz Posted August 25, 2008 Share Posted August 25, 2008 Ok I made a program and want to make a fancy GUI now. I put together an image that will be the gui... I use $WS_POPUP properly to eliminate the border and suchNow as you can tell the sides and such make it have white when I create it within a picture#include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Auto-Awesom", 338, 207, 1, 1, $WS_POPUP) $Pic1 = GUICtrlCreatePic("C:\Users\T_LOKZz\Desktop\main.gif", 0, 0, 337, 206, -1, $GUI_WS_EX_PARENTDRAG) $Label1 = GUICtrlCreateLabel("Label1", 56, 72, 220, 17) GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, 0x000000) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEndIt makes white around it Also... How can I make a label without the box around it. Even if I set it to black you can tell a differnce... The label will not stay the same as it will changeIf you need more information just ask Link to comment Share on other sites More sharing options...
BrettF Posted August 25, 2008 Share Posted August 25, 2008 Have a look at http://www.autoitscript.com/forum/index.ph...c=47651&hl=. Will probably help Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
tlokz Posted August 25, 2008 Author Share Posted August 25, 2008 Thank you very much on that Also about the Label... how can I make it just have the text show up and now the box with it? Link to comment Share on other sites More sharing options...
BrettF Posted August 25, 2008 Share Posted August 25, 2008 (edited) GUICtrlSetBkColor($lbl_ctrl, $GUI_BKCOLOR_TRANSPARENT) Also, to prevent issues, disable the background image. Cheers, Brett Edited August 25, 2008 by BrettF Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
tlokz Posted August 25, 2008 Author Share Posted August 25, 2008 GUICtrlSetBkColor($lbl_ctrl, $GUI_BKCOLOR_TRANSPARENT)Also, to prevent issues, disable the background image. Cheers,BrettThank you a lot First GUI project and you have helped a lot Thanks 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