Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - CommandBar lost focus event
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CommandBar lost focus event

 Post Reply Post Reply
Author
Message
SReedie View Drop Down
Newbie
Newbie


Joined: 19 November 2007
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote SReedie Quote  Post ReplyReply Direct Link To This Post Topic: CommandBar lost focus event
    Posted: 28 November 2007 at 11:28am
When a statusbar is linked to a commandbar and you mouse over any controls in the commandbar the control's DescriptionText property is displayed in the statusbar's IdleText property. So for my MDI form when a user puts the mouse over a commandbar control in a child form I use the ControlSelected event to pass through the control's DescriptionText property to the MDI form statusbar IdleText. The problem I am having is when you move the mouse off the commandbar the IdleText is still set (which is correct as the statusbar belongs to a different form).
 
I wanted to be able to trap when a user moves the mouse off a commandbar control, I have tried the TrackingModeChanged event but it doesn't fire when an individual control loses focus.
 
Is there an event that will do this?
 
Reedie
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: 29 November 2007 at 1:37am
Hi,
just check if parameter is null in ControlSelected event
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
SReedie View Drop Down
Newbie
Newbie


Joined: 19 November 2007
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote SReedie Quote  Post ReplyReply Direct Link To This Post Posted: 29 November 2007 at 8:31am
Nice one, thanks Oleg.
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.203 seconds.