Jump to content
Sign in to follow this  

Colored.. flat... maybe bordered buttons?

Recommended Posts


You know paint right? The little 12x12 colored.. buttons.. at the bottom that are red/blue/green/black etc etc

Whats the simplest way to make those? Actually I want the size to be like 24x18 pixels so they are a bit longer. Not exact though, havent previewed anything yet. I had an idea to make colored labels then detect when you click on it but this is day 3 of Au3 with no previous experience (Explains my newbie questions :lmao:)

It would be best to use no external files as my program is a "Compact" tool and I dont want to have directories just for a few simple pictures :P


Ahaa found a way so you right-click in the bottom area where Im putting the buttons so Ill do it manually, I can use a gradiant too xD I love this au3

Edited by Rad

Share this post

Link to post
Share on other sites

Personally I'd use labels with event handlers like;

Opt("GUIOnEventMode", 1)

$lbl_1 = GUICtrlCreateLabel(" ", 0, 0, 20, 20, $SS_NOTIFY)

$lbl_2 = GUICtrlCreateLabel(" ", 0, 22, 20, 20, $SS_NOTIFY)

GUICtrlSetColor ( $lbl_1, "0xDDDEEE")

GUICtrlSetColor ( $lbl_2, "0xE0FFFF")

GUICtrlSetOnEvent($lbl_1, "setColor")

GUICtrlSetOnEvent($lbl_2, "setColor")

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this