I have written two methods for the DialogBox class. One can get the tab order of a specified DialogBox, and the other will verify the tab order of the specified dialog box. I don't see why this couldn't be converted and used for WebBrowsers as well. If you want to limit it to just the form fields you could check the class of the items similar to how I do in the GetTextFields method.
[This message has been edited by Tom VonderBrink (edited 12-13-2000).]
I agree Browser Child does not have GetFocus.
But I believe you can get a list of it's children controls via GetChildren and have that as the List you search through and ask each control via the HasFocus method.
You can also filter the controls that you are interested in via TypeOf or GetClass.
Okay, thanks for the code - I knew there was an easy way to do this - except now I can't figure out where to put this? in my main window declaration .inc file? or somewhere else?
Everytime I try to use it:
window.GetTextFields() it tells me the "function is not defined for window"
It happens to be a JavaJFCChildWin and so I changed the winclass line to
winclass JavaJFCChildWin:JavaJFCChildWin but that didn't seem to help.