Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Label with Windows background
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00928846
Message ID:
00928932
Vues:
35
>I understand the concept and I might use it. However, I have a problem. At design time, I can clearly see that the label is having a backcolor a little bit darker than the page backcolor. However, in the property sheet, they both represents the same backcolor value. So, when I run the application, it doesn't change anything. What is causing this?

Two things:
1. Could there be any code that might be changing the backcolor value of the label? To verify, you could add a test code in the Click event of the label and use message box to display the value of the label BackColor as well as the PageFrame. That would tell you whether they are identical or not? If not, clearly something (code) is changing it.
Test code in the click event of the label:
messagebox("Label back color: " + transform(this.backcolor) + chr(13) ;
          ("Page Frame back color: " + transform(this.opageframe.backcolor))
2. There is something called "double take" when we veiw colors in different backgrounds. Two identical colors would appear defferently to human eyes when viewed against two different backgrounds.

Hope this helps.
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform