Labels + access keys? |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 21 November 2009 at 11:13am |
13.2.1
In my ribbon application I press ALT to view the access keys. In menus with labels, the labels have access keys too. Perhaps this is by design, but if you ask me this makes no sense. The label is not a command, so why would I want to trigger it?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
So why you set access keys for labels then ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
I don't. Your code does this automatically :(
ID_BLABLA "No access key" void CMainFrame::OnInitCommandsPopup(CXTPPopupBar* pPopupBar) { ...
pControls->Add(xtpControlLabel, ID_BLABLA); // Access key will be present.
...
}
XTP 13.2.1. Just tested it. |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Solved:
pControlLabel->SetFlags(xtpFlagSkipFocus);
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
xtpFlagSkipFocus is not good enough. I want some entries to be focusable by keyboard, but NOT assigned access keys when pressing ALT. This behavior makes sense when you have some 100 entries in a menu and don't want ALT to bloat your screen with 100 squares with access key-combinations! What to do? This is not possible with 13.4.1. |
|
PokerMemento - http://www.pokermemento.com/
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |