2023-02-14 12:55 AM
In TouchGFX 4.20 designer my pages mostly have default 7200 canvas buffer size but some pages default canvas buffer size seems 0 like below;
If I do not add a canvas size to these pages manually, this causes errors. Why does this happen on some pages and not on others?
Thanks.
Solved! Go to Solution.
2023-02-15 12:58 AM
Hello @afergan,
This parameter is set to 7200 when you add a widget that requires canvas rendering, such as a circle or a line. Otherwise, no Canvas Buffer is necessary and the size will be set to 0.
So, if you want this parameter to be set, you can either modify it manually or add a shape in your screen.
Hope that answers the question.
/Yoann
2023-02-15 12:58 AM
Hello @afergan,
This parameter is set to 7200 when you add a widget that requires canvas rendering, such as a circle or a line. Otherwise, no Canvas Buffer is necessary and the size will be set to 0.
So, if you want this parameter to be set, you can either modify it manually or add a shape in your screen.
Hope that answers the question.
/Yoann
2023-02-15 02:04 AM
Hi @Yoann KLEIN ,
Thanks for the information. I think I get this errors because I only crate pages borders on designer and fill inside dynamically in my code. So if I'm going to add circles or lines dynamically, I need to adjust the buffers of these pages.
Thanks.
/Ahmet
2023-02-15 02:26 AM
Hello,
Yes, if you add widgets that require canvas buffer dynamically from your code, you also need to allow some space for these widget to be drawn.
You are welcome :)
/Yoann