RogerL Posted March 27, 2008 Posted March 27, 2008 (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 April 2, 2008 by RogerL
RogerL Posted April 2, 2008 Author Posted April 2, 2008 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.
AdmiralAlkex Posted April 2, 2008 Posted April 2, 2008 Look at the way Fabry used with his Tank game .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
therks Posted April 2, 2008 Posted April 2, 2008 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. My AutoIt Stuff | My Github
RogerL Posted April 3, 2008 Author Posted April 3, 2008 (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 April 3, 2008 by RogerL
RogerL Posted April 3, 2008 Author Posted April 3, 2008 Look at the way Fabry used with his Tank gameThanks for the pointer, tho' I couldn't work it out. No comments, don't know Italian and am a beginner with AutoIt
therks Posted April 4, 2008 Posted April 4, 2008 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). My AutoIt Stuff | My Github
RogerL Posted April 4, 2008 Author Posted April 4, 2008 (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 April 4, 2008 by RogerL
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