![]() |
Menus do not handle keyboard |
Post Reply
|
| Author | |
bobeobi
Newbie
Joined: 31 May 2004 Location: Russian Federation Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Topic: Menus do not handle keyboardPosted: 31 May 2004 at 4:36am |
|
I use accelerators in my view (CCrystalTextView-based code, see codeguru)
MyView::PretranslateMessage(...) { ... if(TranslateAccel(..)) // I can't determine, if main menu is active here... :((( return TRUE; ... } When this view is active, and I select main menu (created using CommandBars), menu doesn't handle keyboard messages correctly(e.g. down or up key), because view grabs this message in it's PreTranslate. Can I determine, that menus are being tracked? If I Could, i would test this flag in my view's PreTranslate code. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 June 2004 at 3:34am |
|
f.e XTPMouseManager()->IsMouseLocked() returns TRUE.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
bobeobi
Newbie
Joined: 31 May 2004 Location: Russian Federation Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 June 2004 at 4:38am |
|
Doesn't work.
I popped up context menu via commandbar's TrackContextMenu, and while menu was visible, U pressed down key,that caused PreTranslate in view to be called. I called IsMouseLocked() within Pretranslate code. it returned FALSE. But thanks any way. MouseManager has method IsTrackedLock(NULL), which handled the issue ;) |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 June 2004 at 12:44am |
|
Oh, yeah, I mean IsTrackedLock :)
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
gteet
Newbie
Joined: 01 April 2004 Location: United States Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 June 2004 at 11:46am |
|
It's nice that you have a workaround for this issue, but is there any chance the library can be modified so keystrokes don't get to the view when a menu is visible?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 June 2004 at 3:15am |
|
In next version it will be available.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |