Drawing transparent boxes

Share Tips, Code Samples, etc. with the Visual Prolog community.
Steve Lympany
VIP Member
Posts: 695
Joined: 31 Mar 2001 23:01

Drawing transparent boxes

Unread post by Steve Lympany » 1 Mar 2006 19:35

The attached project shows a method for
a) drawing 'transparent' boxes
b) drag and drop rectangles
Attachments
drawTransparent.zip
Project showing how to draw transparent coloured boxes.
(23.14 KiB) Downloaded 1122 times

Yuri Ilyin
Posts: 9
Joined: 3 May 2000 23:01

Unread post by Yuri Ilyin » 2 Mar 2006 8:24

Yes. It is interesting.
Another way of drawing something transparent is to draw this as "background".
I.e. inside onPaint first draw boxes and then draw text and lines
regards Yuri.

Steve Lympany
VIP Member
Posts: 695
Joined: 31 Mar 2001 23:01

Unread post by Steve Lympany » 2 Mar 2006 11:14

Hi Yuri,
Yes, my method generates lots of pictures (vpi::pictGetFromWin), which might make the gc sweat a bit on slow computers - maybe?. It was the transparent "drag" across a complex background that I was initially trying to achieve.
cheers
Steve

Post Reply