Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

accelerator character in Ttoolbuton

Status
Not open for further replies.

beltijs

Programmer
Sep 11, 2003
25
AR
Hi!
i not understand if i can't get it right or if just is not possible. I have a Ttoolbutton in a Ttoolbar,
Ttoolbutton->style = tsButton,
Ttoolbutton->caption = &New
Ttoolbar->showcaption = false.

So, according to the definition if i press Alt+N the Onclick action of the button must execute. This is right if i set ttoolbar->showcaption = true. Why is not working with Ttoolbar->showcaption = false, i have to capture the key combination my self?

Thanks in advance.

Paula
 
make an actionlist with a new action in it and define shortcut key for this action.
move the toolbuttonclick method contents over to the Actionexecute method and link the toolbutton to your action, that should do the trick....

--------------------------------------
What You See Is What You Get
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top