Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a transparent rectangle with GDI+X
Message
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Title:
How to create a transparent rectangle with GDI+X
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01387556
Message ID:
01387556
Views:
104
I'm working on an interface where I'd like a grid to display as disabled when the form is in a state which shouldn't allow entry into it.

In the first attempt, I created a small transparent PNG that had a darkening effect. I put this on my form and stretched it across the grid and moved it in or out of view when I wanted the grid to appear unavailable. This worked but seemed to be a big graphic hit to VFP. The screen would flicker and the image would take about 2 seconds to draw itself and sometimes is would draw itself twice. Not sure why.

So I thought I'd give GDI+X a try and draw a rectangle with a low alpha channel value set for transparency. I'm fairly new to GDI+X and I'm not seeing a way to do this. If I use the imagecanvas, I can't seem to make that transparent.

Can anyone point me in the right direction?

Thanks.

-m@
Next
Reply
Map
View

Click here to load this message in the networking platform