Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get rid of fuzzy border around readonly textboxes
Message
From
21/06/2005 19:17:49
 
 
To
21/06/2005 19:12:35
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Miscellaneous
Thread ID:
01025299
Message ID:
01025309
Views:
14
While I do see it, it's not overtly present (certainly not fuzzy). I had to use the Mafgnifier tool to even see it. It's probably dependent on your video resolution/color depth settings and/or quality of your video card and/or monitor.


>Hi Fred,
>
>> VFP 9 with Themes enabled on XP: Any suggestions on how to get rid of the fuzzy border around read-only textboxes so that a read-only textbox's border looks like a standard textbox?
>
>Thanks for taking a look at this for me. Copy and paste code follows my signature. Setting Readonly to True places a 1 pixel light gray border inside the control's main border. I had to take a screen shot, paste it into Paint, and then magnify it to see the cause of the effect. But the effect itself is quite noticable to me and my customers. Especially once you're aware that its there (ala try not to think about pink elephants).
>
>Any ideas?
>
>Malcolm
>
>
>local loForm as Form
>
>loForm = createobject( "clsForm" )
>loForm.Show( 1 )
>loForm = .Null.
>
>
>define class clsForm as Form
>
>	AutoCenter = .T.
>	BackColor = rgb( 255,255,255 )
>	Height = 100
>	Width = 400
>	
>	add object txtReadonly as Textbox with ;
>		DisabledBackColor = rgb( 255,255,255 ), ;
>		Height = 25, ;
>		Left = 10, ;
>		ReadOnly = .T., ;
>		Top = 10, ;
>		Width = 300, ;
>		Value = "Gray border inside outer border"
>
>	add object txtNormal as Textbox with ;
>		Height = 25, ;
>		Left = 10, ;
>		Top = 40, ;
>		Width = 300, ;
>		Value = "No gray border inside outer border"
>		
>enddefine
>
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform