Page 1 of 1

Resizing chart by dragging

Posted: Wed Jun 20, 2007 6:15 pm
by 9532498
I have a TChart on a PropertyPage. I want to add the capability to resize the chart by clicking on the corners (or border) of the chart panel and then dragging the corner (or border) to resize the panel. Is there an example that I can use?
Thanks.

Posted: Fri Jun 22, 2007 4:35 pm
by Pep
Hi,

what about using the Selector Tool, setting the AllowResize to true ?

tchart1.Tools.Items(0).asSelector.AllowResizeChart = True

Posted: Thu Nov 22, 2007 2:32 pm
by 15046980
Hi,

I have tried to "translate" suggested solution for VBScript. Unfortunately, it does not work.

Is it possible to modify this code into VBScript for using with IE7?

Thanks in advance,
Danila.

Posted: Mon Nov 26, 2007 11:59 am
by Pep
Hi Danila,

to change the size of the ActiveX object with vbScript you will have to use the standard ms techniques, like :

Code: Select all


Sub Window_Onload()
    Set obj = document.all("TChart1")

    obj.style.pixelWidth = screen.width
    obj.style.pixelHeight = screen.height 

    FillChart()
End Sub