cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX Designer Default Canvas Buffer Size 0

afergan
Associate II

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;

0693W00000YAfsWQAT.pngIf 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.

1 ACCEPTED SOLUTION

Accepted Solutions
Yoann KLEIN
ST Employee

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

Yoann KLEIN
ST Software Developer | TouchGFX

View solution in original post

3 REPLIES 3
Yoann KLEIN
ST Employee

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

Yoann KLEIN
ST Software Developer | TouchGFX
afergan
Associate II

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

Yoann KLEIN
ST Employee

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

Yoann KLEIN
ST Software Developer | TouchGFX