Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Setup a Listbox in a Grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00916064
Message ID:
00916281
Views:
9
Einar,

See thread:
http://www.levelextreme.com/wconnect/wc.dll?FournierTransformation~2,15,894979

To duplicate the problem do the following:
1. Set-up a form.
2. Drop a combo box (grid not necessary) with scrollbars.
3. Make sure that there is more data in your source that can be displayed in the combo box.
4. Drop more controls below the combo box where the drop down list will be displayed. Make sure that these controls can obtain focus.
5. Run form. Open combo box.
6. Click on the scrollbar but not on the thumb bar (at least that is what I call it). Do this several times both below and above thumb bar.
7. Now click on the form but * not * on a control
8. You will probably notice that one of the controls that you placed below the combo box has focus.

In my case, the combo box is in a grid.
When I try the above, the combo box several rows down in the grid receives the focus.




>Please see answer inserted in text.
>I guess I do not understand the exact problem that you have encountered. I have been using comboboxes in grids for years and have never had any problems with it.
>Please describe the scrollbar problem more closely.
>
>Again I don't think you can get around increasing the grids row height to accomodate multiple items in a listbox that is displayed in a grid, but when I think about it I have never put a listbox in a grid.
>
>Einar
>
>>Einar,
>>
>>Oh oh.
>>I am trying to get around (read that CHANGE) my application that uses comboboxes. One of the most important forms in the app is grid centric with a combo box to choose the price of an item.
>>I found (here at UT) the bug about click on the scroll bar, not choosing an element then clicking somewhere else on the form - ouch!
>
>Can't you capture that from the valid event of the combobox?
>
>>
>>Since this app is VFP 7 I can't use the bindevents that was suggested here with a transparent shape under the combo.
>>
>>My 2 alternatives (unless I have missed something) are listbox or a command button to fire a form with a grid. I guess another alternative is a command button to fire a form with a * combobox *. The only other objects on the form would be a close button which would have to be outside of the area where the grid drops down.
>>
>>Suggestions?
>>
>>TIA.
>>
Regards,

Allan Coganovitch
allanc@proven-solutions.com
Previous
Reply
Map
View

Click here to load this message in the networking platform