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

Drawing transparent boxes

Unread post by Steve Lympany »

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 1412 times
Yuri Ilyin
Posts: 5
Joined: 3 May 2000 23:01

Unread post by Yuri Ilyin »

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: 56
Joined: 31 Mar 2001 23:01

Unread post by Steve Lympany »

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