Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get rid of fuzzy border around readonly textboxes
Message
De
23/06/2005 13:10:42
 
 
À
23/06/2005 10:56:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Divers
Thread ID:
01025299
Message ID:
01025933
Vues:
14
>Hi John,
>
>>Brings up the point... if your capturing all the Keystrokes.... Why make the control readonly?
>
>I know the technique sounds silly at first glance.

Not to me... it's calculator input. I've written controls for it too.

>>But, by keeping the control in a readonly state, the control's value STAYS right aligned while I manipulate the control's value during KeyPress event. This gives me a control that supports input while preserving right alignment.

But I don't see that the readonly state is needed for that, just trap all of the keypress events and use this.value = newval with NODEFAULT to input the value and it stays right aligned.

Or am I missing some situation where it doesn't stay alligned?

Dorin's control for instance stays right aligned for me without being readonly.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform