Clear an area on a form
Posted: Tue Jul 30, 2024 10:40 am
I have never used VO or its development environment.
I have converted a large VO application to X# and most of it is running fine. But I am having problems with a few little things not quite working.
I have a problem with some graphics in an X# program ported from VO. The program draws small diagrams on a form, the shape of a spectacle frame, and if the frame changes, it wants to erase the old diagram and draw the new one, but instead it draws over the one that is already there, so the erase is not working.
The code it uses to do the erasing is this:
SELF:oOwner:RePaintBoundingBox(boundingbox{SELF:oPoint, SELF:oDim})
Now oOwner is the containing form inherited from VO.DataWindow so that RePaintBoundingBox is a method from the VOGui class. The variables oPoint and oDim define the area on the form to be cleared. They contain sensible values and are also used to by the drawing routines to draw the diagram and work correctly there.
Now I have limited documentation on the VOGui methods but re-painting does not sound to me like something that would clear an area. It sounds much more like a method to restore an area to its original graphics after it had been occluded by another window or similar.
Is this the way to clear an area on a form?
Thanks,
John
I have converted a large VO application to X# and most of it is running fine. But I am having problems with a few little things not quite working.
I have a problem with some graphics in an X# program ported from VO. The program draws small diagrams on a form, the shape of a spectacle frame, and if the frame changes, it wants to erase the old diagram and draw the new one, but instead it draws over the one that is already there, so the erase is not working.
The code it uses to do the erasing is this:
SELF:oOwner:RePaintBoundingBox(boundingbox{SELF:oPoint, SELF:oDim})
Now oOwner is the containing form inherited from VO.DataWindow so that RePaintBoundingBox is a method from the VOGui class. The variables oPoint and oDim define the area on the form to be cleared. They contain sensible values and are also used to by the drawing routines to draw the diagram and work correctly there.
Now I have limited documentation on the VOGui methods but re-painting does not sound to me like something that would clear an area. It sounds much more like a method to restore an area to its original graphics after it had been occluded by another window or similar.
Is this the way to clear an area on a form?
Thanks,
John