Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Misbehaving dropdown list
Message
From
04/02/2008 19:09:15
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Misbehaving dropdown list
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01289375
Message ID:
01289375
Views:
60
I've got a combo that I wish to drop down automagically on focus. In VFP8, a simple:
THIS.SETFOCUS
KEYBOARD '{F4}'
in the GotFocus method worked nicely. In VFP9 (no SP at this moment), it drops with the top item in the list seemingly selected. Make a selection and it sticks fine, move away and back to the combo, and it is back to highlighting the top item. Removing the GotFocus code and operating interactively, either F4 or the ALT+DOWN ARROW combination works as I'd expect, meaning my last selection is highlighted, and not the top of the list. FWIW, it works the same in SP2. And removing the THIS.SETFOCUS also breaks it in VFP8.

Anyone have a workaround?
Next
Reply
Map
View

Click here to load this message in the networking platform