It is currently Tue Jan 26, 2021 7:38 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Step-by-step through an automated drawing sequence
PostPosted: Wed Jul 08, 2020 7:07 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 6282
Location: Wales, UK
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:
Macro QaNextDrg
;#-------------
InvalidateRect_(GadgetID(#CnvDrawing),#Null, #True)
While WindowEvent() : Wend
MessageRequester("Next", "Next")
EndMacro


Snippet:
Code:
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Step-by-step through an automated drawing sequence
PostPosted: Wed Jul 08, 2020 7:40 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 3381
Location: Boston, MA
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Step-by-step through an automated drawing sequence
PostPosted: Wed Jul 08, 2020 8:13 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 6282
Location: Wales, UK
.... or just throw my PC in the bin :mrgreen:

Thanks skywalk

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye