Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Gradient Background on VFP Forms
Message
From
13/05/2008 03:11:33
 
 
To
13/05/2008 02:19:29
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01316572
Message ID:
01316578
Views:
14
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform