Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to SetFocus to custom user object

Status
Not open for further replies.

2Paranoid

Programmer
Jul 7, 2010
1
US
I have a window on which I dynamically create a custom user object which contains a DisplayOnly MultiLineEdit, an EditMask and a Search button. The TabOrder is set to 10 on the EditMask and 20 on the Search button (0 on the MultiLineEdit).

Directly following the create of the user object (using OpenUserObject), I set the TabOrder of the custom user object to 5 and then call an of_Initialize() function on the object that sets focus to the EditMask (which doesn't work). I also added code to setfocus to the customer user object to see if that would help, but it did not work either.

The really odd thing is that it acts as if "nothing" has focus. I can tab all day and there is no indication of a focus change. So I added a getfocus following the code above and ran it through the debugger which showed the customer user object "had" focus.

Has anyone else run across this issue and am I doing something wrong or is there a workaround?

Thanks in advance,
Bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top