Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabled listbox
Message
De
09/02/2001 14:27:20
 
 
À
09/02/2001 11:54:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00474411
Message ID:
00474557
Vues:
18
Len

I'm using VFP 6.0 SP3. When I return .f. in the when and click on the list box, the interactivechange event does not fire. If I click and hold and scroll down the list it changes the selected item in the list and the event fires. Seems like maybe one of the mouse events needs to return .f. too.

Tim

>>When I disable a list box, I cannot identify the selected item. I've tried changing the disabledforecolor and disableditemforecolor with no success. All of the items in the list look the same (dark grey on white background). I also tried returning .f. in the when event instead of setting the listbox.enabled = .f., but that didn't totally work either. I was still able to access the control's events if I click and hold the mouse down over the list. What is the best way to disable a list so you can still see the selected item?
>>
>>Tim
>
>I've got no problem in disabling a listbox by returning .F. in When (still using VfP5, BTW). I've just tried various mouse clicks/drags/etc with the listbox disable & no events fire.
>
>What you do have to be careful of is that the control hasn't got focus at the time you disable it using that technique - it will still have the focus & events will still fire, until it loses focus & then it cannot get focus again.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform