DeeRiee Posted April 9, 2009 Posted April 9, 2009 GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) Not working for icon... i've search but only find for bmp or gif. not for ico Is it possible to make background of guictrlcreateicon() tranparent?? #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.0.0 Author: myName Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 403, 273, 204, 206) $Pic1 = GUICtrlCreatePic(@SystemDir & "\oobe\images\newmark8.jpg", 40, 40, 329, 209, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) $Label1 = GUICtrlCreateLabel("TEXT TEXT TEXT", 136, 168, 94, 17) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT);This Works $Icon1 = GUICtrlCreateIcon(@SystemDir & "\shell32.dll", 8, 144, 80, 73, 73, BitOR($SS_NOTIFY,$WS_GROUP)) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT);Doesnt Work :( GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Thanks before
Moderators Melba23 Posted April 9, 2009 Moderators Posted April 9, 2009 DeeRiee, If you look at this thread, you will understand why the icon is not really transparent. If you search in Yashied's recent posts, I seem to remember that he has developed a UDF which can show transparent icons. 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
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