Sign in to follow this  
Followers 0
RogerL

Own buttons with scrollbar button icons?

8 posts in this topic

#1 ·  Posted (edited)

I wish to have two buttons with the same icons as the standard windows scrollbar buttons, i.e the little black triangles. Is it possible to reference them wherever MS has stored them? If so where are they? Or is there a better way? TIA, Roger

Edited by RogerL

Share this post


Link to post
Share on other sites



In the absence of any help I made my own icons with IconFx. Still would be nice not to have do that and reference the icons that exist somewhere in the machine.

Share this post


Link to post
Share on other sites

Open up Character Map and have a look at the Marlett font. That's where MS stores those little arrows, as well as maximize, minimize, close, etc.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Open up Character Map and have a look at the Marlett font. That's where MS stores those little arrows, as well as maximize, minimize, close, etc.

Thanks very much for that Saunders.

I changed:

$upButton  = GUICtrlCreateButton ("", 20, 249, 16, 16, $BS_ICON)
GUICtrlSetImage  ($upButton, "UpTriangle16x16.ico")

to:

$upButton = GUICtrlCreateButton (Chr(0x74), 20, 249, 16, 16)
GUICtrlSetFont ($upButton, 9, 400, 1, "Marlett")

did I do right? (it seems to work ok)

Edited by RogerL

Share this post


Link to post
Share on other sites

Look at the way Fabry used with his Tank game

Thanks for the pointer, tho' I couldn't work it out. No comments, don't know Italian and am a beginner with AutoIt

Share this post


Link to post
Share on other sites

Thanks very much for that Saunders.

I changed:

$upButton  = GUICtrlCreateButton ("", 20, 249, 16, 16, $BS_ICON)
GUICtrlSetImage  ($upButton, "UpTriangle16x16.ico")

to:

$upButton = GUICtrlCreateButton (Chr(0x74), 20, 249, 16, 16)
GUICtrlSetFont ($upButton, 9, 400, 1, "Marlett")

did I do right? (it seems to work ok)

Looks good to me. Although you could have just used "t" instead of Chr(0x74). :)

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Looks good to me. Although you could have just used "t" instead of Chr(0x74). :)

Yea, thanks...I guess I'm showing my newbie colours. In the Marlett map it said the character code I wanted was 0x74...a bit of extended thought should have sent me to the ASCII Character Codes list in the AutoIt Help to find the 'normal' character. Anyway thanks again. Edited by RogerL

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  
Followers 0