Codejock Forums Homepage
Forum Home Forum Home > General > XAML Snippets
  New Posts New Posts RSS Feed - adding to CXTPMarkupPointCollection
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

adding to CXTPMarkupPointCollection

 Post Reply Post Reply
Author
Message Reverse Sort Order
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Topic: adding to CXTPMarkupPointCollection
    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
Back to Top
BobWansink View Drop Down
Groupie
Groupie
Avatar

Joined: 24 January 2008
Status: Offline
Points: 59
Post Options Post Options   Thanks (0) Thanks(0)   Quote BobWansink Quote  Post ReplyReply Direct Link To This Post 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++
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.