markloman Posted January 4, 2005 Share Posted January 4, 2005 I am building a handy tool with a nice interface. I am working with AutoIt 3.0.103.149 and have some trouble with the gui controls. I am new to the GUI part of AutoIt and I have played with several GUI Control Styles but I am still unable to get the desired result. Please look at the picture. How do I get the background color of the controls transparant?I hope someone can help so I can work on the GUI. Link to comment Share on other sites More sharing options...
SlimShady Posted January 4, 2005 Share Posted January 4, 2005 I like the interface already I can't help you. I'm sorry for this useless post. Link to comment Share on other sites More sharing options...
jpm Posted January 4, 2005 Share Posted January 4, 2005 I am building a handy tool with a nice interface. I am working with AutoIt 3.0.103.149 and have some trouble with the gui controls. I am new to the GUI part of AutoIt and I have played with several GUI Control Styles but I am still unable to get the desired result. Please look at the picture. How do I get the background color of the controls transparant?I hope someone can help so I can work on the GUI.<{POST_SNAPBACK}>Can you post a sample that's reproduce your problem so we can help you?Thanks Link to comment Share on other sites More sharing options...
markloman Posted January 4, 2005 Author Share Posted January 4, 2005 Global $WS_CLIPSIBLINGS = 0x4000000; GUICreate ( $ProgName & " " & $Version, 640, 384 ) $btn_Start = GUICtrlCreateButton ( "Start", 148, 90, 80, 42 ) $btn_Stop = GUICtrlCreateButton ( "Stop", 280, 90, 80, 42 ) $btn_Settings = GUICtrlCreateButton ( "Configuratie", 412, 90, 80, 42 ) $cbx_downloadupdates = GUICtrlCreateCheckbox ( "Download Updates", 40, 220 ) GUICtrlCreateTab ( 30, 170, 580, 170 ) $tab0 = GUICtrlCreateTabitem ( "Hello" ) $main_pic = GUICtrlCreatePic ( "gui.jpg", 0, 0, 640, 384, $WS_CLIPSIBLINGS ) GUICtrlSetState ( $btn_Stop, $GUI_DISABLE ) GuiSetState ( @SW_SHOW ) Don't kill me for this code I am just playing around with the settings to get the desired result before I start writing some usefull lines. Link to comment Share on other sites More sharing options...
jpm Posted January 4, 2005 Share Posted January 4, 2005 Global $WS_CLIPSIBLINGS = 0x4000000; GUICreate ( $ProgName & " " & $Version, 640, 384 ) $btn_Start = GUICtrlCreateButton ( "Start", 148, 90, 80, 42 ) $btn_Stop = GUICtrlCreateButton ( "Stop", 280, 90, 80, 42 ) $btn_Settings = GUICtrlCreateButton ( "Configuratie", 412, 90, 80, 42 ) $cbx_downloadupdates = GUICtrlCreateCheckbox ( "Download Updates", 40, 220 ) GUICtrlCreateTab ( 30, 170, 580, 170 ) $tab0 = GUICtrlCreateTabitem ( "Hello" ) $main_pic = GUICtrlCreatePic ( "gui.jpg", 0, 0, 640, 384, $WS_CLIPSIBLINGS ) GUICtrlSetState ( $btn_Stop, $GUI_DISABLE ) GuiSetState ( @SW_SHOW )Don't kill me for this code I am just playing around with the settings to get the desired result before I start writing some usefull lines.<{POST_SNAPBACK}>change $cbx_downloadupdates = GUICtrlCreateCheckbox ( "Download Updates", 40, 130 )The checkbox is not part of the tab so that the reason of the color.if you want to have it on the tab you have to change the time when you define itas $progName= "markloman" $version="1.0" ;Global $WS_CLIPSIBLINGS = 0x4000000; GUICreate ( $ProgName & " " & $Version, 640, 384 ) $btn_Start = GUICtrlCreateButton ( "Start", 148, 90, 80, 42 ) $btn_Stop = GUICtrlCreateButton ( "Stop", 280, 90, 80, 42 ) $btn_Settings = GUICtrlCreateButton ( "Configuratie", 412, 90, 80, 42 ) GUICtrlCreateTab ( 30, 170, 580, 170 ) $tab0 = GUICtrlCreateTabitem ( "Hello" ) $cbx_downloadupdates = GUICtrlCreateCheckbox ( "Download Updates", 40, 220 ) ;$main_pic = GUICtrlCreatePic ( "gui.jpg", 0, 0, 640, 384, $WS_CLIPSIBLINGS ) GUICtrlSetState ( $btn_Stop, $GUI_DISABLE ) GuiSetState ( @SW_SHOW ) Do $msg=GuiGetMsg() Until $msg=$GUI_EVENT_CLOSECheers Link to comment Share on other sites More sharing options...
markloman Posted January 4, 2005 Author Share Posted January 4, 2005 (edited) Thanks, that's obvious Fixed it. But what about the tab? I think it inherits the color of the window. But when I change the background color of the window to (for example) 0xff0000 (red), only the buttons inherit this color. The tab does not. Edited January 4, 2005 by markloman Link to comment Share on other sites More sharing options...
jpm Posted January 5, 2005 Share Posted January 5, 2005 Thanks, that's obvious Fixed it. But what about the tab?I think it inherits the color of the window. But when I change the background color of the window to (for example) 0xff0000 (red), only the buttons inherit this color. The tab does not.<{POST_SNAPBACK}>Tab as stated in the doc cannot be painted as stated in the docTo terminate the tab control just create a last "tabitem" control with a null text "". The "tabitem" control cannot be painted (too much code ...)Sorry AutoIt try to stay slim and is mainly a wrapper to windows, not a windows reimplementation 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