Hi all,
I need to get an window handle of currently active control in NAV. For example, when the user opens Item Card form and put the input focus on field "No." I need to get the window handle of field "No." edit box. So far, I analyzed the NAV forms with Spy++ and found that form Item Card has no child controls. I can't believe that NAV draws all forms in run-time as a picture and handle&process all messages with its own engine, instead of using standard windows controls.
Does anyone got stuck with this before?
I need dynamically highlight some fields and prefer using standard windows drawing procedures instead of using Border (and related) properties.
Would be thankful for any ideas.
0
Answers
What do you want to do? Encompass the field with a red rectangle when a field is activated?
http://www.BiloBeauty.com
http://www.autismspeaks.org
As a matter of fact, I need to dynamically activate (switch on proper tab if tab control is used) and highlight an active field. I mean a field with input focus (if we are using WinAPI terminology).
For these purposes I prefer to use GetDC, CreateSolidBrush, Rectangle, etc. standard WinAPI functions instead of playing around Border, Border Color and Border Width form properties (especially when these properties are not available in run-time )
In the past I've built controls that were designed for quick entry so a mouse wasn't used and I found that using the ACTIVATE function in conjunction with defining the tab order (set the Next Control property of each field) that I could accomplish that task.
Epimatic Corp.
http://www.epimatic.com