Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pageframe & Shape colors problems
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01041434
Message ID:
01041460
Vues:
24
Hi Naomi,

As Hugo has already said, the pageframe color is a soft gradient. It can't be matched by simply getting the color of it... I mean you could get close, but that's about as far as you can get. Case in point, change the line of code in the init event of the sample code Hugo provided to read something like this:

thisform.shape1.fillcolor = THISFORM.POINT(THISFORM.pageframe1.LEFT + 25, THISFORM.PAGEFRAME1.TOP + 25)

This will get the color of that particular pixel on the pageframe control. but it doesn't match the entire pageframe as you can see by changing the left and top of the shape to move it over the top of the pageframe.

So... you can easily get close, but not exact. You could take a screen capture of your pageframe while running and then put that as the picture of a container control instead of a shape. That's the only things I can think of... to mimic it completely would perhaps require more work than it's worth? Just some thoughts.

>>You can disable the themes on the pageframe, of course the appearence will change, but at least it would match with the pageframe's color, assuming all pages have the same color. With Themes enabled, I guess you should use API to determine the actual color to copy it as fill color of the shape
>
>Hi Hugo,
>
>Can you please elaborate more? My pageframe has Themes enabled (default) and I can see even in design-time that the color is lighter than form's color. How can I get color for the pageframe and set it for my shape? Too bad shape doesn't have Themes property.
>
>Thanks again.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform