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 13:03:36
 
 
To
07/12/2006 12:57:59
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:
01175777
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 :-)

Still why not?

>
>Actually, I did insert a WAIT 'Combo1 GotFocus' WINDOW TIME 2 in the combo's GotFocus event - so I could see every time it got the focus. I believe the "flickering" problem is happening because the combo's initial value is blank - and not contained in the list. It's interesting to compare the behavior of an identical copy of the combo placed outside the grid. It behaves quite differently.
>
>What is a "bog-standard"?

"plain wrapper", "common-all-garden"

>
>I think I'd end up not using any of VFP's controls or classes if I "abandoned ship" every time I ran into an unexpected/unusual behavior :) Maybe VFP would be a better product if more people submitted enhancement requests to MSoft (assuming I actually end up finding a bug/quirk). Of course, creating your own combo-like object is always an option in a language as powerful as VFP. My perseverance does usually pay off for me in the long run. But I can understand that many others will not be as patient...
>
>>
>>>
>>>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!? :-)
>
>
>As a long-time programmer, I like to rule out potential causes. The VFP "converter" is a big unknown to me, so thought it might be smarter to rule it out...
>
>And yes, having to learn a product as substantial as VFP is like being involved in a massive research project :)

I guess many of us came to it already with dBASE III, Clipper, et al under our belts. It;s the converting to the OOP and visual bit that's the learning curve, but so pleasurable cf PPD.
- 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
Reply
Map
View

Click here to load this message in the networking platform