Jump to content

Own buttons with scrollbar button icons?


RogerL
 Share

Recommended Posts

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
Link to comment
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.

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
Link to comment
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). :)
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...