Skip to main content
AGama.1
Associate II
December 30, 2020
Solved

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

  • December 30, 2020
  • 1 reply
  • 876 views

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 ???

This topic has been closed for replies.
Best answer by Alexandre RENOUX

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

1 reply

Alexandre RENOUX
Alexandre RENOUXBest answer
Visitor II
January 5, 2021

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

AGama.1
AGama.1Author
Associate II
January 5, 2021

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