nick21 Posted January 26, 2010 Posted January 26, 2010 Ok, I have been trying and looking around. I want to make the GUI 100% transparent, but leave the buttons,gui image normal so I can see them.This is what it looks like.This is what I want it to look likeI just want to gui border, and top bar gone, so it will just display the picture and buttons (if I want to move them around).Thank You,nick21
James Posted January 26, 2010 Posted January 26, 2010 So this second GUI (End Task) is inside of the first?If so, set the styles to the GUI to:BitOR ($WS_POPUP, $WS_BORDER)These are defined in GUIConstantsEx.au3 or WindowsConstants - I can never remember which Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
Fire Posted January 26, 2010 Posted January 26, 2010 Sample: #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form=fgtrgr.kxf $Form1 = GUICreate("Form1", 633, 447, 245, 193, BitOR($WS_SYSMENU,$WS_CAPTION,$WS_POPUP,$WS_POPUPWINDOW,$WS_BORDER,$WS_CLIPSIBLINGS), 0) $Button1 = GUICtrlCreateButton("Button1", 128, 192, 201, 65, BitOR($WS_GROUP,$WS_BORDER)) GUISetState(@SW_SHOW) WinSetTrans($Form1,"",170) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd [size="5"] [/size]
martin Posted January 30, 2010 Posted January 30, 2010 Ok, I have been trying and looking around. I want to make the GUI 100% transparent, but leave the buttons,gui image normal so I can see them.This is what it looks like.This is what I want it to look likeI just want to gui border, and top bar gone, so it will just display the picture and buttons (if I want to move them around).Thank You,nick21Unless I misunderstand, I don't see the relevance of posts #2 and #3.To make the parent gui transparent but not the child window you could create a mask for the parent so that only the child is visible. That won't work without some extra work if you want to move the child around in the parent, although if the parent is not visible moving the child around will be confusing anyway.If you just want the controls on the parent to be visible but not the rest of the window to be seen then that is a bit easier and MrCreatoR has a udf for it in example scripts. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Moderators Melba23 Posted January 30, 2010 Moderators Posted January 30, 2010 nick21,Like martin, I am unsure exactly what you are looking for.If you want to have an inage of the "EndProgram - MayaStartUpWnd" GUI overlaid with your own buttons, then this might help:#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $hGUI = GUICreate("Test", 400, 350, -1, -1, $WS_POPUP) $hPic = GUICtrlCreatePic("Your_Image_Here", 0, 0, 400, 350) GUICtrlSetState(-1, $GUI_DISABLE) $hEnd_Button = GUICtrlCreateButton("End Now", 210, 290, 80, 40) $hCan_Button = GUICtrlCreateButton("Cancel", 300, 290, 80, 40) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $hCan_Button MsgBox(0, "Message", "Cancelling") Exit Case $hEnd_Button MsgBox(0, "Message", "Ending") Exit EndSwitch WEndif neither of us is close, please give us a bit more of a hint as to your requirements. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
nick21 Posted January 31, 2010 Author Posted January 31, 2010 Melba23, that worked perfect. Thank you to everyone for helping me out, in getting this to work. I know some Autoit stuff but don't know a lot.
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