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 11:51:24
 
 
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:
01175731
Views:
8
>>Thanks Terry - I will give that a try. I'm trying to learn about all the quirks in VFP 9, as relates to combos in grids. So first I want to get a combo working perfectly outside a grid, then move it to a column in my grid. Then compare how the combo works - inside vs outside the grid... So far, even with VFP 9, I cannot get the combo's dropdown list to remain open (when combo is in a grid).
>
>KEYBOARD '{F4}' PLAIN
>
>in the combo's SgotFocus() event
>
>will cause it to open auto when you focus on it
>
>>It closes as soon as I type any character. OTOH, outside of a grid, the combo stays dropped down as I type characters - performing incremental searches (as one would expect it to).
>
>You sure you've got the combo' Style prop. set as a drop-down list or combo? If you want to be able to type in it then set it to 0.
>
>FYI, I don't know if you know but "combo" stands for "Combination text box-drop-down list" (not surf & turf), for use when, say, you have a list of name titles, e.g. Mr, Mrs, Miss, Ms, and you want to enter something unusual, like "Capt", "Rev" or "WCom" (Wing Commander).


Yes, I have it's style set to 0 - Dropdown, yet the list closes upon typing anything. Not that I have its style set to List mode, but are you saying the dropdown list is designed to close as soon as you type anything (when style = List)?

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...

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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform