Accelerated characters with Canvas.Textout()???
Posted on 2004-10-17
I'm making my own buttoncomponent, derived from TCustomControl. Now I want to be able to create a shortcut for the button, using accelerated characters (underlined characters, the ones with an & in front of them in the Caption). How would I do that? And how do I connect a shortcut to the button once I can display the accelerated characters??
I'm using Canvas.TextOut() to display the caption on the button. Tried using a TCustomLabel on top of the button, but there are problems with mousecapture and stuff with that solution, so if itäs possible to use Canvas.TextOut() I'd prefer that...