control to a treeview
how do I get control to a treeview object inside a window? it's not a pop up window. SetFocus doesn't seem to be working.
[-] PCTREE SysDefNavigator
[ ] multitag "$59420/$8378/$59648/$8442" //navigator/pctree2
the call is:
[-] if (!this.HasFocus())
[ ] this.setfocus()
[ ] bfocustest = this.HasFocus()
[ ] this.TypeKeys ("<Ctrl-Home>")
I don't see on the GUI the control goes back to the top of the tree.
Re: control to a treeview
You could be really crude and set focus to the item in the tab order before the TreeView and try TypeKeys ("<Tab>") to set the focus to the TreeView.
I see that you're capturing whether or not the object has the focus. Is it returning TRUE?
A concerned Borland customer, a fly in the ointment, a wrench in the works.