Profile Picture

OnViewRangeChanged event

Posted By André Spitzner 12 Years Ago
Author
Message
André Spitzner
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 7 Years Ago
Posts: 2, Visits: 2

Hi,

is there a way to connect to a event when the ViewRange or PageRange is changed?

I have see the Scrollbar has such a event, but its only fired if someone scroll, but this is not what i want. The way with the OnAfterpaint callback is also not usable for me.



Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 2 days ago @ 1:54 AM
Posts: 3,054, Visits: 4,009

Hi Andre,

If you're using the NDataZoomTool to modify the range you can hook to the EndDrag event there:

dataZoomTool.EndDrag += new EventHandler(dataZoomTool_EndDrag);
....

void dataZoomTool_EndDrag(object sender, EventArgs e)
{
// do something on end drag
}

Hope this helps - let us know if you meet any problems.



Best Regards,
Nevron Support Team



André Spitzner
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 7 Years Ago
Posts: 2, Visits: 2

Yes, thats it. Thank you. I use this events as well for moving constant lines and so on.

Sometimes i can not see the forest for the trees. Too much lines of code in my head.





Similar Topics


Reading This Topic