Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Menus do not handle keyboard
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Menus do not handle keyboard

 Post Reply Post Reply
Author
Message Reverse Sort Order
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Topic: Menus do not handle keyboard
    Posted: 08 June 2004 at 3:15am
In next version it will be available.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
gteet View Drop Down
Newbie
Newbie


Joined: 01 April 2004
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote gteet Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 03 June 2004 at 12:44am
Oh, yeah, I mean IsTrackedLock :)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
bobeobi View Drop Down
Newbie
Newbie


Joined: 31 May 2004
Location: Russian Federation
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote bobeobi Quote  Post ReplyReply Direct Link To This Post 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 ;)

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 01 June 2004 at 3:34am
f.e XTPMouseManager()->IsMouseLocked() returns TRUE.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
bobeobi View Drop Down
Newbie
Newbie


Joined: 31 May 2004
Location: Russian Federation
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote bobeobi Quote  Post ReplyReply Direct Link To This Post Posted: 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.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.