I have a continuing problem where the appearance of labels placed on a form
change whenever I click on other controls.

I simply place labels next to controls (via my own class library). By
default they appear in bold, Arial, 8. As I begin to use the other controls
on the form - listboxes, combos etc. the labels 'darken' bit by bit to the
stage where they are almost illegible.

I really can't understand why - there's no code in the background doing
something it shouldn't.

I wondered if it was a problem with the font (it happens on different
PC's) - but Arial being so 'common' I can't think why.

I'm using VFP9

Any help would be much appreciated......

Re: Appearance of labels change unexpectedly by Dan

Dan
Thu Jan 18 11:00:57 CST 2007

This smells like a Themes problem.

Try _Screen.Themes = .f. (or each form has a Themes property) and see if
that makes a difference.

Dan

"Andy Trezise" <andy@20chr.freeserve.co.uk> wrote in message
news:OornrwtOHHA.780@TK2MSFTNGP03.phx.gbl...
>I have a continuing problem where the appearance of labels placed on a form
>change whenever I click on other controls.
>
> I simply place labels next to controls (via my own class library). By
> default they appear in bold, Arial, 8. As I begin to use the other
> controls on the form - listboxes, combos etc. the labels 'darken' bit by
> bit to the stage where they are almost illegible.
>
> I really can't understand why - there's no code in the background doing
> something it shouldn't.
>
> I wondered if it was a problem with the font (it happens on different
> PC's) - but Arial being so 'common' I can't think why.
>
> I'm using VFP9
>
> Any help would be much appreciated......
>
>



Re: Appearance of labels change unexpectedly by Olaf

Olaf
Thu Jan 18 11:25:36 CST 2007

See if it helps to put

IF This.BackStyle == 0
This.Caption = This.Caption
ENDIF

into the refresh() event of your your label class.

Bye, Olaf.



Re: Appearance of labels change unexpectedly by Paul

Paul
Thu Jan 18 12:53:53 CST 2007

I have seen this problem frequently, and have heard that it is related to
ClearType and LCD screens.

THIS.VISIBLE = THIS.VISIBLE might help, but it's a hack. MS really needs to
fix this one, because it really ruins the appearance of applications.



"Andy Trezise" <andy@20chr.freeserve.co.uk> wrote in message
news:OornrwtOHHA.780@TK2MSFTNGP03.phx.gbl...
>I have a continuing problem where the appearance of labels placed on a form
>change whenever I click on other controls.
>
> I simply place labels next to controls (via my own class library). By
> default they appear in bold, Arial, 8. As I begin to use the other
> controls on the form - listboxes, combos etc. the labels 'darken' bit by
> bit to the stage where they are almost illegible.
>
> I really can't understand why - there's no code in the background doing
> something it shouldn't.
>
> I wondered if it was a problem with the font (it happens on different
> PC's) - but Arial being so 'common' I can't think why.
>
> I'm using VFP9
>
> Any help would be much appreciated......
>
>