Hello, Anyone know how to set focus to a TreeView? Thanks Windows OE 11.7.8
B balta Member Jun 28, 2023 #1 Hello, Anyone know how to set focus to a TreeView? Thanks Windows OE 11.7.8
Cringer ProgressTalk.com Moderator Staff member Jun 29, 2023 #4 In which case you'll need to provide a lot more detail as the answer Wolfgang has given is correct. There is evidently a problem with your code.
In which case you'll need to provide a lot more detail as the answer Wolfgang has given is correct. There is evidently a problem with your code.
B balta Member Jun 29, 2023 #5 @Cringer, problem with my code? I have a Treeview with OCX that i want to the focus. I have this TreeView. The same is inicialized like this. Code: /* TREEVIEW */ assign chTreeView = chtv:TreeView. assign chImageList = chim:ImageList. assign chTreeView:ImageList = chImageList. When i do this don´t work Code: chTreeView:focus(). Give this error Also with Code: chTreeView:TreeView:focus().
@Cringer, problem with my code? I have a Treeview with OCX that i want to the focus. I have this TreeView. The same is inicialized like this. Code: /* TREEVIEW */ assign chTreeView = chtv:TreeView. assign chImageList = chim:ImageList. assign chTreeView:ImageList = chImageList. When i do this don´t work Code: chTreeView:focus(). Give this error Also with Code: chTreeView:TreeView:focus().
O Osborne Active Member Jun 29, 2023 #6 How are you hosting the TreeView OCX, is it in a CONTROL-FRAME which was created something similar to?: Code: DEFINE VARIABLE CtrlFrame AS WIDGET-HANDLE NO-UNDO. CREATE CONTROL-FRAME CtrlFrame ASSIGN FRAME = FRAME F1:HANDLE ROW = 1.24 COLUMN = 4 HEIGHT = 14.29 WIDTH = 35 WIDGET-ID = 6 HIDDEN = no SENSITIVE = yes. If so, can you set focus to the CONTROL-FRAME instead of the Treeview?: Code: APPLY "ENTRY" TO CtrlFrame.
How are you hosting the TreeView OCX, is it in a CONTROL-FRAME which was created something similar to?: Code: DEFINE VARIABLE CtrlFrame AS WIDGET-HANDLE NO-UNDO. CREATE CONTROL-FRAME CtrlFrame ASSIGN FRAME = FRAME F1:HANDLE ROW = 1.24 COLUMN = 4 HEIGHT = 14.29 WIDTH = 35 WIDGET-ID = 6 HIDDEN = no SENSITIVE = yes. If so, can you set focus to the CONTROL-FRAME instead of the Treeview?: Code: APPLY "ENTRY" TO CtrlFrame.