Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coordinates of selected text
Message
De
06/07/2004 08:14:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
06/07/2004 02:10:17
Km Kwun
Eastop Consultants Limited
Nt, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00920718
Message ID:
00920968
Vues:
30
You mean, you need the actual coordinates, in pixels? Why would you need that?

Anyway, perhaps the TxtWidth() function, in combination with SysMetric(), can help you here.

Another alternative would be to use the API. You can call Windows API functions from VFP, but I am not an expert on this subject.

>However calculating the coordinates from the SelStart and SelLength properties is complicated. I wonder if there is an API similar to the GetCaretPos() API to make the job simplier.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform