KenNichols Posted June 16, 2009 Share Posted June 16, 2009 GUICtrlCreateButton("Button", 10, 10, 70, 20) When using the standard Windows XP theme these types of buttons look ok. But if you use the Windows Classic theme they basically blend into the background. Is there a way to embed the pictures when using GUICtrlCreatePic("", 72, 80, 92, 28)? Or is there a better way to create buttons? [topic="21048"]New to AutoIt? Check out AutoIt 1-2-3![/topic] Need to make a GUI? You NEED KODA FormDesigner! Link to comment Share on other sites More sharing options...
CodyBarrett Posted June 16, 2009 Share Posted June 16, 2009 $BS_ICON and... i personally use Labels when it comes to buttons they are much more customizable [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
KenNichols Posted June 16, 2009 Author Share Posted June 16, 2009 $BS_ICONand... i personally use Labels when it comes to buttons they are much more customizableThanks for the reply. It's not exactly what I need, but good to know.Can you give me an example of how you use Labels? [topic="21048"]New to AutoIt? Check out AutoIt 1-2-3![/topic] Need to make a GUI? You NEED KODA FormDesigner! Link to comment Share on other sites More sharing options...
CodyBarrett Posted June 17, 2009 Share Posted June 17, 2009 $label = Guictrlcreatelabel ('LABEL', 10, 10, 100, 20, $SS_CENTER) Guictrlsetbkcolor (-1, 0x2E2E2E) Guictrlsetcolor (-1, 0xFFFFFF) Guictrlsetfont (-1, 10, 400, 'Fixedsys') a label control is the same control as a button except that buttons have a nice Push in animation, labels on the other hand are MUCH more customizable [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
Valuater Posted June 17, 2009 Share Posted June 17, 2009 (edited) ButtonHover() http://www.autoitscript.com/forum/index.ph...st&p=288428orEzSkin.exe http://www.autoitscript.com/forum/index.ph...st&p=3073808) Edited June 17, 2009 by Valuater Link to comment Share on other sites More sharing options...
KenNichols Posted June 17, 2009 Author Share Posted June 17, 2009 ButtonHover() http://www.autoitscript.com/forum/index.ph...st&p=288428orEzSkin.exe http://www.autoitscript.com/forum/index.ph...st&p=3073808)Thanks ButtonHover is pretty close to what I wanted. Is there a way to embed the button pics into the app? [topic="21048"]New to AutoIt? Check out AutoIt 1-2-3![/topic] Need to make a GUI? You NEED KODA FormDesigner! Link to comment Share on other sites More sharing options...
Valuater Posted June 17, 2009 Share Posted June 17, 2009 Yes FileInstall() $My_pic = @TempDir & "\Over.jpg" FileInstall("C:\Program Files\AutoIt3\Examples\Over.jpg", $My_pic) 8) 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