Step-by-step through an automated drawing sequence

Windows specific forum
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Step-by-step through an automated drawing sequence

Post by IdeasVacuum »

Basically, my program is taking 3D coordinates and drawing a 2D shape on a canvas from them, using the Vector Lib. No two sets of data are the same.

I want to observe the 2D drawing being drawn. If I use debugger break-points, nothing is displayed until the whole shape is drawn. So, I thought - use a macro for that instead, but the issue is the same.

Code: Select all

Macro QaNextDrg
;#-------------
InvalidateRect_(GadgetID(#CnvDrawing),#Null, #True)
While WindowEvent() : Wend
MessageRequester("Next", "Next")
EndMacro
Snippet:

Code: Select all

AddPathCircle(ptStart1\x, ptStart1\y, 3, 0, 360, #PB_Path_Default)
VectorSourceColor(RGBA(255, 0, 0, 255))
      StrokePath(4)
QaNextDrg

AddPathCircle(ptEnd1\x, ptEnd1\y, 3, 0, 360, #PB_Path_Default)
VectorSourceColor(RGBA(0, 0, 255, 255))
      StrokePath(4)
QaNextDrg
Any ideas?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
skywalk
Addict
Addict
Posts: 3995
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Step-by-step through an automated drawing sequence

Post by skywalk »

You have to put
StartVectorDrawing()
StopVectorDrawing()
StartVectorDrawing()
in the frequency of your choosing.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Step-by-step through an automated drawing sequence

Post by IdeasVacuum »

.... or just throw my PC in the bin :mrgreen:

Thanks skywalk
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply