Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Gradient colors
Message
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Title:
Environment versions
Visual FoxPro:
VFP 8
Miscellaneous
Thread ID:
01027128
Message ID:
01027487
Views:
16
> Too many functions and properties missing to do it that way
> (like scalemode, line etc).
> GDI+? I would think so.
> 1. Create a graphic object
> 2. Create a rectangle object add the LinearGradientBrush to it.
>
> And paste it on your form, container or shape.

Unfortunatly GDI+ (or even GDI) does not work well here. You can draw to the form easy enough and hook into the Paint event. The problem is you need to paint between layers (on top of the container and under the controls) you cant do that with the way VFP handles form rendering.

Probably the best you could do is draw to the location and size of the container or shape and mask off any controls you find on top of the container or shape. Such that you are cutting out a template and laying it over the form. This could get tricky with XP themes...with their rounded buttons...

Bo Durban
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform