Resize VProgress bar with user input

Share RGraph:   Share or Like RGraph on Facebook!

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by zing on 27th January 2014
Hi guys,

Is that possible to resize the vprogress bar (width and height) depends on input value? Something like, Set two text fields to allow user to key in width and height then then press the button and vprogress bar will change the size.

Anyone can help me?

Thank you in advance.

Regards,
Zing
Posted by Richard on 27th January 2014
Hi there,

Yes - you could read the value of the text field(s) then set the HTML attributes of the canvas tag:

obj.canvas.width = newWidth;
obj.canvas.height = newHeight;

And then call redraw:

RGraph.Redraw();





Richard

Add a reply




« Back to message list