Focus in DBLookupListBox? 
Author Message
 Focus in DBLookupListBox?

Hi,
In a dbgrid, I have a DBLookupListBox. It is non-visible at runtime
until the focus is on the relevant column.
It is then shown with the following code:

      SetWindowPos(DBLookupListBox1.Handle, // handle
                   0, // change z-order
                   Rect.Left + DBGridInsem.Left - 60, // left
                   Rect.Top + DBGridInsem.top -20, // top
                   Rect.Right - Rect.Left + 200, // width
                   Rect.Bottom - Rect.top + 120, // height
                   SWP_NOZORDER or SWP_SHOWWINDOW); // flags
      DBLookupListBox1 := TRUE;

The listbox is populated from a TQuery.
I can get the selected item form the listbox with the mouse, but how
to get the focus in the listbox so the arrow keys can be used?
SetActive does not seem to work, but if I show the canfocus property
in a showmessageit is True.
Please help.
Thank you
Johan Smit



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. How can I sort a DBLookuplistbox???

2. Begin or End of table error using DBlookuplistbox component

3. OnDblClick in DBLookupListBox

4. Items count for a DBlookuplistbox?

5. DBLookupListBox weird behavior

6. DBLookUpListBox bug???

7. Changing display width in DBLookupListBox

8. DBLookupListBox

9. Q: MultiSelect in DBLookupListBox?

10. How to fill DBLookuplistbox with the result of a query

11. DbLookupListbox

12. Multi-Field in DBLookupListbOx Help

 

 
Powered by phpBB® Forum Software