Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fading Out Visual Foxpro Form Control
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01504655
Message ID:
01504686
Views:
162
>Can you fade out a Visual Foxpro control (listbox, label etc.) ? I found several articles on doing that with a form but I'm wondering if you can do that instead with controls on a form.

I worked on a similar idea: instead of fading out, a control had to "shake" attracting user's attention. The GDI+ based approach was as follows:

- copy control's image to a buffer
- rotate the initial image by a small angle at a time, generate a succession of images (frames)
- hide the original control
- display generated frames at regular intervals; that creates an effect of a control shaking

GDI+: how to make VFP controls visually shake and shudder
http://www.news2news.com/vfp/?example=526

I guess the very same approach can be applied for fading controls out. Capture the original control, hide it, and then draw its image constantly increasing its transparency.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform