cancel
Showing results for 
Search instead for 
Did you mean: 

Can I change the "CAPACITY" of an instance of "GraphScroll" in runtime after its initialization ?

AGama.1
Associate II

My instance is created in the base file as follows:

touchgfx::GraphScroll<50> BlueGraph;

And I need to change the capacity of this graph from 50 to 100 to have the line smoother when some event is triggered.

Is is possible to change that capacity after setting it in the base file generated ???

1 ACCEPTED SOLUTION

Accepted Solutions
Alexandre RENOUX
Principal

Hello AGama.1,

No unfortunately the capacity has no public setter that you could use to change the value at run time. The current implementation forces you to set a capacity at the instance creation that will never change.

I'll discuss with the team to see if we can change this to make what you want possible.

/Alexandre

View solution in original post

2 REPLIES 2
Alexandre RENOUX
Principal

Hello AGama.1,

No unfortunately the capacity has no public setter that you could use to change the value at run time. The current implementation forces you to set a capacity at the instance creation that will never change.

I'll discuss with the team to see if we can change this to make what you want possible.

/Alexandre

Thanks Alexandre for you reply.

Actually I implemented (for now) some workaround exploiting the visibility of 2 overlapping graphs with different capacities to get things done.

I am very interested in knowing some other solution your team can end up with. Hope to have better solution from you.

Thanks once again for your response.

AGama.1