Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 Real-Time Graphics Tools for .Net (VB and C#)
 Vertical Marker Moveable
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sajimenez

14 Posts

Posted - 10 Nov 2010 :  18:00:11  Show Profile  Reply with Quote
Hi, I want that a marker (with MarkerType = ChartObj.MARKER_VLINE) be moveable. How can achieve this?

I set a MoveObj to my Chart:



this.moveObject = new MoveObj(this.chart);
this.moveObject.SetEnable(true);
this.moveObject.SetMoveObjectFilter("GraphObj");
this.chart.SetCurrentMouseListener(moveObject);



and when I create the Marker:



marker.MoveableType = ChartObj.OBJECT_MOVEABLE;



What is I missing?

Thank you.

sajimenez

quinncurtis

1164 Posts

Posted - 10 Nov 2010 :  18:44:22  Show Profile  Reply with Quote
We modified our example program MouseListeners.MoveObjects, adding a vertical cursor right before the marked section.

Marker amarker = new Marker(pTransform1, ChartObj.MARKER_VLINE, x1[5].GetCalendarMsecs(), y1[5], 10.0, ChartObj.PHYS_POS);
chartVu.AddChartObject(amarker);

// This section already in example program.
MoveObj mouselistener = new MoveObj(chartVu );
mouselistener.SetEnable(true);
mouselistener.SetMoveObjectFilter("GraphObj");
chartVu.SetCurrentMouseListener(mouselistener);


The vertical cursor seems to move fine. See if you can duplicate it.


Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07