![]() |
Commandbars Focus |
Post Reply
|
| Author | |
OscarM
Groupie
Joined: 07 November 2005 Status: Offline Points: 72 |
Post Options
Thanks(0)
Quote Reply
Topic: Commandbars FocusPosted: 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 ![]() |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
OscarM
Groupie
Joined: 07 November 2005 Status: Offline Points: 72 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
OscarM
Groupie
Joined: 07 November 2005 Status: Offline Points: 72 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 September 2006 at 3:34am |
|
VB ValidateControls works
|
|
![]() |
|
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 |