Phantomasss Posted May 7, 2009 Posted May 7, 2009 Hello, how to create GUI as image? How to add text (not image, simple text) on this window & buttons (from images). Please, help...Skin (example, 3 images):Done:Can you show example (code)? Sorry for my bad English, thanks...I tried to add an image in GUI:Text not transperent & not deleted standart window frame .
Zedna Posted May 7, 2009 Posted May 7, 2009 (edited) Post script you have, somebody will fix it for you.Transparent label over background picture:http://www.autoitscript.com/forum/index.ph...st&p=218148For removing original window title use style BitOR($WS_POPUP,$WS_BORDER) in GUICreate() Edited May 7, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
youknowwho4eva Posted May 7, 2009 Posted May 7, 2009 Sounds and looks like GDI+ would be a good way to do what you want. Giggity
Phantomasss Posted May 10, 2009 Author Posted May 10, 2009 Hmm... how to move a window taking image? :|
BrettF Posted May 10, 2009 Posted May 10, 2009 I hope this explains it... #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $GUI = GUICreate ("", 120, 120, Default, Default, $WS_POPUP) $bckg = GUICtrlCreatePic (@ScriptDir & "\bkg.gif", 0, 0, 120, 120) GUICtrlSetState ($bckg, $GUI_DISABLE) $CLOSE = GUICtrlCreatePic (@ScriptDir & "\close.gif", 108, 3, 10, 10) $MINI = GUICtrlCreatePic (@ScriptDir & "\mini.gif", 96, 3, 10, 10) GUICtrlCreateLabel ("", 0, 0, 120, 15, Default, $GUI_WS_EX_PARENTDRAG) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUISetState (@SW_SHOW) While 1 $nMsg = GUIGetMsg () Switch $nMsg Case $GUI_EVENT_CLOSE, $CLOSE Exit Case $GUI_EVENT_MINIMIZE, $MINI GUISetState (@SW_MINIMIZE) EndSwitch WEnd I just cut the image posted to be CLOSE.gif (close button), MINI.gif (minimize button) and the background image. Cheers, Brett 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!
Phantomasss Posted May 16, 2009 Author Posted May 16, 2009 How to change GUI background color to image? GUICreate("My GUI", 120, 120) GUICtrlCreatePic(@ScriptDir & "\image.gif", 0, 0, 120, 120) It does not suit. If there will be an update of other elements then user can see background color. Need: GUI background color = Image. Thanks!
BrettF Posted May 16, 2009 Posted May 16, 2009 (edited) Disable the background image. This is like one of the only ways... Edited May 16, 2009 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!
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