Jump to content

Symbols in buttons


meekaah
 Share

Recommended Posts

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 :P

post-26037-1195293891_thumb.jpg

Link to comment
Share on other sites

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

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...