Jump to content
Software FX Community

A Custom scroll/track bar to function in the absence of inbuilt scrollbar


Tej

Recommended Posts

 Hi ,

 I am using Chart FX 6.2 version for .Net.

I would like to use a custom scroll bar or say a track bar rather,  toscroll through the graph instead of in-built chartFX scrollbar. Iwould like to know how to do this. Also Chart FX in-built scrollbarshould not be visible.

The Property 'ExtraStyle' does not come into the 6.2 version as it comes in the 7 version. How should I go about it?

Please help me on this.

It would be a great help if someone can provide sample code for this.

 Thanks & Regards,

 Tej

 

Link to comment
Share on other sites

You can add a TrackBar to your form and use the following code to scroll through the graph:

private void trackBar1_Scroll(object sender, EventArgs e)

{

chart1.AxisX.ScrollPosition = trackBar1.Value;

}

Also add this line within the Form Load:

trackBar1.Maximum = chart1.NValues;

//or you can use (int)chart1.AxisX.Max if you previously set this value to your chart.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...