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:
00581750
Vues:
33
>>>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 :-)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform