Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to drag a control to/from a grid?
Message
From
07/12/2006 12:40:00
 
 
To
07/12/2006 12:31:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01175606
Message ID:
01175768
Views:
7
...
>
>>>
>>>I also have observed that when combo is in a grid, the first time I click on the combo's dropdown arrow, the list drops down for a brief instant, then closes. I have to click on it a 2nd time, and then the dropdown remains open. Until I type anything, at which point it closes. So I have 2 quirks occurring so far with combos inside a grid...
>>
>>Did you put the code I mentioned, above, in its .GotFocus()? Not sure but I guess the first click is "swallowed" by the grid. Don't know why the combo jitters though. You'd need to set a breakpoint in the grid's .GotFocus() and trace what's hap[pening.
>
>
>No, I did not try adding that code yet. I do notice that ***every other*** time I click on the combo's arrow, the dropdown list flashes for only a second, then disappears. If I click on it again, it remains open. So I do not think it has anything to do with the grid stealing focus away from combo (as the grid is already selected).

And why not? It's not a major system re-write to try it! By this process you'll come to realise why people end up using their own classes of the combo and not the bog-standard as you are seeking :-)

>
>I think I am going to start a brand new project and test grid-based combos more thoroughly. Maybe that fact that this project was created by the VFP 6 "converter" (from a FP-DOS 2.6 project) is making my life very difficult :)

What? you on a research grant or something!? :-)
>
>
>
>
>>>
>>>In my case the grid's column is a PartNumber field from a Products table. The combo is set up as 2 columns, PartNumber and PartDescription. I want the user to be able to type in the part number (if they know it), OR drop down a list of PartNumber/Description choices to pick from. I want the dropdown to incrementally search as they type. Am I asking for to much from this native combo control?
>>
>>And is it NOT actually incrementally searching as you type, even though the list closes? Does it get there when you put a valid part no. in?
>
>When I type the first character, it does incrementally search and move to the first matching item in the dropdown - but then immediately closes. I want it to stay open until I press ENTER or click on a choice.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform