BoxXY()
Posted: Fri Jun 25, 2010 10:37 am
Hi together,
Marc, a new user, had a problem with the Box() procedure.
So at least I found a working solution for him.
Maybe it is also usefull for someone else:The original thread with an example is here:
http://www.purebasic.fr/english/viewtop ... 13&t=42599
Best regards,
Bernd
Marc, a new user, had a problem with the Box() procedure.
So at least I found a working solution for him.
Maybe it is also usefull for someone else:
Code: Select all
Procedure BoxXY(x1, y1, x2, y2, Colour = -1)
If x2 < x1
x = x1
x1 = x2
x2 = x + 1
Else
x2 + 1
EndIf
If y2 < y1
y = y1
y1 = y2
y2 = y + 1
Else
y2 + 1
EndIf
If Colour = -1
Box(x1, y1, x2 - x1, y2 - y1)
Else
Box(x1, y1, x2 - x1, y2 - y1, Colour)
EndIf
EndProcedure
http://www.purebasic.fr/english/viewtop ... 13&t=42599
Best regards,
Bernd