Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get rid of fuzzy border around readonly textboxes
Message
From
23/06/2005 13:10:42
 
 
To
23/06/2005 10:56:02
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Miscellaneous
Thread ID:
01025299
Message ID:
01025933
Views:
15
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform