Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ugly captions on labels once Bold and dynamicly added

Status
Not open for further replies.

Nifrabar

Programmer
Mar 16, 2003
1,343
NL
Hi!
I do have on a form the possibility to add autoaticly (data driven) objects.
Each object has among others a label with caption in Bold.
Now it appears that Bold causes ugly lettering als some rubbish (scratches) around.

Also the form caption sometimes get ugly by having scratches and other rubish displayed.

Anyone has same experience?

VFP9 SP1

Kind regards,
-Bart
 
Check your videocard. Can you reproduce the problem on another computer? Is it possible that you miscalculate the label's position and put multiple objects causing the weird effect?
 
with the form caption, I don't know. But with label captions there is a known effect that could cause this.

take your label (and checkbox) class and add this to the refresh method:
Code:
IF This.BackStyle = 0 
   This.Caption = This.Caption 
ENDIF

Bye, Olaf.
 
Bart,

I'm not sure what you mean by rubbish or scratches. However, I have sometimes seen a few spurious black pixels near the edge of a label. It looks as if the label has been moved or resized, but the original sizing handles have not been properly erased. Is that what you are seeing?

I have only ever seen this at design time, not when the form is running.

If this doesn't help at all, I'd agree with Ilyad. Check the video card, and try to compare the behaviour when you run it on another computer.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Seems like leftover "residue" of the label caption. Lock the screen before adding the objects then unlock. Also do a Thisform.cls
This will clean it up
 
Ilyad,
Seems no videocard issue for this ison desktop pc as well as on laptop.

Olaf,
Going to try for all labels do have Backstyle = 0

Mike,
I will try to get screenshot to display the rubish.

Imaginecorp,
I tried the lockscreen but no result.

-Bart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top