How to draw a semi-transparent line on a picture control in VB6
Posted on 2004-10-20
I have a picture control which has a gradient filled background.
This picture control is to be used as the background (and container) of a gant-chart style calendar which is drawn on using VB code.
We draw on top of the picture, several vertical and horizontal lines; vertical lines seperate hours, and the horizontal ones seperate different resources which can be scheduled.
Currently, the lines are drawn in a single colour (actually, 2 colours for a 3D effect) but I want them to be drawn semi-transparent, so that the gradient fill colour is shown through the line. This should allow for a more realistic 3D effect.
The whole application is already working, so please dont suggest re-writing in .Net etc as at this stage it is not possible.
Obviously, using the 2 colours and a single coloured / non-gradient background looks fine, but it looks much nicer with a gradient fill, and our clients have requested it.