Print Page | Close Window

Labels + access keys?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=15683
Printed Date: 21 November 2024 at 7:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Labels + access keys?
Posted By: znakeeye
Subject: Labels + access keys?
Date 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?



Replies:
Posted By: Oleg
Date Posted: 23 November 2009 at 5:04am
Hi,
 
So why you set access keys for labels then ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 13 December 2009 at 4:37pm
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.


Posted By: znakeeye
Date Posted: 13 December 2009 at 5:26pm
Solved:
 
pControlLabel->SetFlags(xtpFlagSkipFocus);


Posted By: znakeeye
Date Posted: 04 October 2010 at 6:13pm

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/



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net