Ken,
there's a very easy way to get around the problem with the toolbar not
receiving focus. I believe you merely reset focus to the current control.
Frank.
Frank Cazabon
On 30/01/2013 09:24 PM, Ken Dibble wrote:
Are there any other things that I have to watch for using this
way of handling validation? (I am remembering now why I went with a
button toolbar (to allow exiting a form when the current entry
control has an invalid value), but there are probably other traps.)
Toolbars and the controls on them cannot* get focus. Therefore if the
user is able to exit by clicking a toolbar button, the LostFocus() of
whatever control had focus at that time may not fire. If the button
they click is the "Save" button, they can save invalid data.
This is one reason why I abandoned using toolbars.
* They aren't _supposed_ to be able to get focus. As I recall, there
are bizarrenesses with comboboxes on toolbars, and, perhaps, also with
textboxes.
Ken Dibble
www.stic-cil.org
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.