meekaah Posted November 17, 2007 Share Posted November 17, 2007 Hi, im creating a virtual keyboard and im having no trouble with any of the keys except for the arrow keys id like to put arrow symbols on the caption of a button, but i just cant... is there a possible way of like using hex codes or something? ive put a little screenshot of the kind of symbol id like to put in the caption of the button in case im not very clear ^^ if anyone has a solution, thanx in advance Link to comment Share on other sites More sharing options...
meekaah Posted November 17, 2007 Author Share Posted November 17, 2007 nobody? Link to comment Share on other sites More sharing options...
Bowmore Posted November 17, 2007 Share Posted November 17, 2007 (edited) Have a look at GUISetFont() that should point you in the right direction. A small example of how to insert special characters on a button #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= Global $Form1 = GUICreate("Form1", 360, 280, 432, 159) GUISetFont(20, 1000, 0, "Symbol") ;~ GUISetFont(14, 800, 0, "windings") Global $MyButton1 = GUICtrlCreateButton(chr(0xAC) & chr(0xAD) & chr(0xAE) & chr(0xAF), 132, 124, 100, 30, $BS_FLAT) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd You can set a different font for each control if you really want to. Edited November 17, 2007 by Bowmore "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook Link to comment Share on other sites More sharing options...
BrettF Posted November 17, 2007 Share Posted November 17, 2007 MsgBox (0, "", Chr (0x1A)) MsgBox (0, "", Chr (0x1B)) MsgBox (0, "", Chr (0x18)) MsgBox (0, "", Chr (0x19)) Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
meekaah Posted November 18, 2007 Author Share Posted November 18, 2007 Thanks guys, that did the trick 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