How can I change the line color when I draw a rectangle ?

Discussions related to Visual Prolog
silverhawk
Posts: 3
Joined: 20 Oct 2011 2:51

How can I change the line color when I draw a rectangle ?

Unread post by silverhawk » 20 Oct 2011 2:55

I want it to be white.

thank you in advance :-)

silverhawk
Posts: 3
Joined: 20 Oct 2011 2:51

Anyone ?

Unread post by silverhawk » 20 Oct 2011 15:50

Is it possible?

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

Unread post by Steve Lympany » 20 Oct 2011 16:40

Hi,
Use setpen() (GDI or VPI). Also setBrush. eg

Code: Select all

draw(GDI):- GDI:setpen(1,ps_solid,color_white),
regards
Steve

silverhawk
Posts: 3
Joined: 20 Oct 2011 2:51

Unread post by silverhawk » 20 Oct 2011 17:31

excellent!!!

I used

winSetPen(WindowsHandle W, pen(1,ps_solid,Color)),

Thank you for your guidance!

Post Reply