Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know editbox scrolled?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00581731
Message ID:
00582130
Vues:
36
Interesting idea and a great starting point for me. Thanks Gerald.

>>>>I have a form that contains an editbox. The user wants to be able to left click on it and have a picklist of statements appear. That is easy by calling my picklist form from the .Click() event. However, clicking in the editbox's scroll bar also triggers the .Click() event which is undesirable. Any way to determine if the Click was in the text area of the editbox or in the scrollbar?
>>>
>>>It's not the answer,
>>>but why dont you use the rightclick for this?
>>>:-)
>>
>>I'd rather not because there are areas in the app where rightclick invokes a shortcut menu and I want to have consistency for that.
>
>
>OK.
>
>You can start with this idea.
>In the mousedown of the list:
>
>if nXcoord-this.left > this.width-14
>	messagebox("scrollbar")
>else
>	messagebox("list")	
>endif	
>
>
>Customize this to store a value indicating where the click occurs in the list and acces this value from the click event...
>
>HTH :-)
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform