Landscape / Portrait in one project

What do you want to achieve?

In one project manage both orientation

Do you see alternative options and workaround to achieve it?

Now only code
Actual lvgl use 1 content size type, but for change display vs screen size we need for example for panels or all object somethink as PARENTsize and perfect in SQS will PARENT size with arithmetics, for example panel width define as PWIDTH - 12 or / 3 usw.

Mention some use cases

What is “3 usw”?

For you information, in LVGL v9 I’m planning to introduce the following units:

  • sw and sh: 1% of screen width ot height
  • aspect ratio: if set on width, it means the percent of height, or vice-versa
  • em: 1 line height
  • ch: width of letter ‘M’ (or ‘0’)

/3 is PDWITH/3
and usw. is etc. in german…
I now test work with % system. Is good for change orienttion, but sometimes need other calculation…

And what “PDWITH” is? :smiley:

parrent dimension

Today i have next issue with this. I try in event change basic object width from fixed back to LV_CONTENT, but SQS accept only numbers. I write this half year before here.
Then in code is half operation in events and …

       lv_obj_set_width( ui_Label11, LV_SIZE_CONTENT);
       lv_event_send(ui_Label11, LV_EVENT_CLICKED, NULL); 

Ofcourse i know 1 << 13 is number , but try write it into SQS.

I added it to our todo list.