Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Gradient Background on VFP Forms
Message
De
13/05/2008 03:11:33
 
 
À
13/05/2008 02:19:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01316572
Message ID:
01316578
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
>Hi guys, is it possible to put a gradient background in vfp forms aside from putting an image in the picture property?
>
>Thanks in advance...

To get a gradient background, put this code in yourform.resize:
LOCAL lnRow
ThisForm.ScaleMode = 3
ThisForm.DrawWidth = 1
FOR lnRow = 0 TO ThisForm.width 
   ThisForm.ForeColor = RGB(0,0,255-255*lnRow/ThisForm.width) && Change the color values to your preference
   ThisForm.Line(lnRow, 0,lnRow,ThisForm.height)
NEXT lnRow
Yourform.init:
this.resize()
NB! If you resize the form this code is not perfect.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform