Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ryss Unger
  Where is Ryss Unger?
 Cape Town
 South Africa
 Ryss Unger
 To: Gary Sanford
  Where is Gary Sanford?
 Nolensville
 Tennessee - United States
 Gary Sanford
 Tags
Subject: RE: How to force a dropdown list to drop down (added to FAQ)
Thread ID: 323 Message ID: 331 # Views: 4 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Wednesday, May 23, 2001 12:26:30 PM         
   


> put this code in the gotfocus event of the dropdown
> keyboard '{alt+dnarrow}'
> this.click()
>
> this will force the dropdown when the dropdown gets focus as long as you don't click the down arrow. Clicking the arrow will cause the list to retract. I place a box the same color as the background over the arrow (I haven't found out a way to remove it) so it doesn't get clicked. The only problem with this is that if the list is not dropped down you can't click the arrow to force it so i put this code in the doubleclick event:
> keyboard '{alt+dnarrow}'
>
> this will force the dropdown when double clicked.
>
> hope this works for you
> gary

Hi Gary,
I have not tried this littel trick but I LOVE IT...

Good thinking ....

A variation could allow the code in click event as..
If vcall = "incode"
keyboard '{alt+dnarrow}'
endif

Not tested but get the idea .. solves the problem decribed above.

Regards
Ryss

ENTIRE THREAD

How to force a dropdown list to drop down Posted by Paul Beckett @ 5/23/2001 9:16:29 AM
RE: How to force a dropdown list to drop down Posted by Gary Sanford @ 5/23/2001 9:41:07 AM
RE: How to force a dropdown list to drop down (added to FAQ) Posted by Ryss Unger @ 5/23/2001 12:26:30 PM
RE: How to force a dropdown list to drop down (added to FAQ) Posted by Ryss Unger @ 5/23/2001 2:04:44 PM
RE: How to force a dropdown list to drop down Posted by Paul Brown @ 5/23/2001 9:46:59 AM