VBGamer |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Idea... Brian Clark (6 replies, 0 views) (2000-Apr-16) What I am doing for RECTs, will work for any UDT, here is what I am doing
Make a Class FakeRECT with Four public Variables(top, left,...), and then make a Public function in your prog called GetRECT(fRECT as FakeRECT) as RECT
Just call it like thois whenever you need to use it
fastblt surface, GetRECT(Class.FakeRECT), X, Y...
Public Function GetRECT(fRECT as FakeRECT) as RECT
Dim tmpRECT as RECT
with tmpRECT
.top = fRECT.top
.
.
end with
GetRECT = tmpRECT
end function
Hope all this helps!!!
|