Print Page | Close Window

adding to CXTPMarkupPointCollection

Printed From: Codejock Forums
Category: General
Forum Name: XAML Snippets
Forum Description: Post your XAML snippets here for everyone to enjoy :)
URL: http://forum.codejock.com/forum_posts.asp?TID=13101
Printed Date: 06 May 2024 at 8:07pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: adding to CXTPMarkupPointCollection
Posted By: BobWansink
Subject: adding to CXTPMarkupPointCollection
Date Posted: 07 January 2009 at 9:41am
Hi all,

I was wondering how I might be able to add points to a pointcollection. I've been able to extract one from a CXTPMarkupPolyline * and now I'd like to be able to add points to it. That would make our charting unbelievable versatile!

As a backup, I might be able to add 30 or so points to it, all placed at 0 0 and edit them to point them somewhere else:

10 10, 12 10, 12 20, 60 21, 60 21, 60 21.......

but I would prefer to be able to add and remove points on the fly...

Thanks in advance!

Bob


-------------
     Product: Xtreme ToolkitPro (MFC) version 13.0.0
     Platform: Windows (32bit) - XP - Vista
     Language: Visual C++



Replies:
Posted By: Oleg
Date Posted: 07 January 2009 at 3:06pm
You can use its constructor:
 
CXTPMarkupPointCollection(CPointArray& arr)
 
create CXTPMarkupPointCollection::CPointArray arr;
add all points to "arr" and create new CXTPMarkupPointCollection(arr);
 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net