Print Page | Close Window

Commandbars Focus

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=4660
Printed Date: 20 June 2025 at 12:01pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Commandbars Focus
Posted By: OscarM
Subject: Commandbars Focus
Date Posted: 26 July 2006 at 12:23pm
Hello, when commandbars get focus (by click button, by accelerator keys), active control don't loses focus, then an action is done (ie Save data) before control's validation. Example: an invoice form: user inputs the date in texbox and presses commandbars's Save button: as data isn't validated after textbox's LostFocus or Validate, I can't save the right value. I have a very long project with lots of forms and controls, and i can't put a control before save for every of them (textboxes, grids, checkboxes, etc).
Is there any property for raise a GotFocus before commandbar's Execute event? If not, can you agregate it for next relesase?

Thanks

Sorry for my very bad english Embarrassed



Replies:
Posted By: Oleg
Date Posted: 26 July 2006 at 12:27pm
Hello,
Just add some me.SetFocus in the beginning of Execute event.


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


Posted By: OscarM
Date Posted: 26 July 2006 at 12:38pm
A me.Setfocus o control.setfocus in Execute's events raises the lost focus after Execute procedure is executed, then Saves and then Validates. I need something like and BeforeExecute Event or a commandbars_GotFocus

Thanks


Posted By: OscarM
Date Posted: 25 September 2006 at 3:34am
VB ValidateControls works 



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