eez-open / studio

Cross-platform low-code GUI and automation
https://www.envox.eu/studio/studio-introduction/
GNU General Public License v3.0
567 stars 96 forks source link

[LVGL] Populate drop down list items from enum? #615

Open ajayre opened 3 days ago

ajayre commented 3 days ago

LVGL 9.1

Is it possible to populate a drop down list from all possible values in an enum?

I have a drop down list called Foo. The Selected property is set to assignable and native variable name FooValue FooValue is defined with the type FooValues FooValues is an enum.

Instead of copying the possible values from FooValues into the drop down list Options field, is there an expression that can be entered there to get all the values from the definition of FooValues?

Without adding custom code, doing this only in the editor.

Thanks.

mvladic commented 3 days ago

Sorry, there is no such expression function.