Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement