eez-open / studio

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

TextArea, Floating point var, Keypad LVGL 8.0 and 9.0 #605

Closed Sanjaypatel145 closed 2 weeks ago

Sanjaypatel145 commented 1 month ago

Describe the bug When editing the text area with Numeric Key board decimal point can be placed at last while editing, but when text area is assigned to variable using expression decimal point cannot be placed at the last place.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image

Working correctly when text area is literal image

error here when text area is assigned to variable data using expression image

Desktop (please complete the following information):

LVGL version (if used)

Additional context Add any other context about the problem here.

mvladic commented 3 weeks ago

In Textarea widget, "Value" property should be bound to string variable and you can use Flow.parseFloat to convert string to float.

lvgl_debug_keyboard_textarea_decimal_point.zip

image

Sanjaypatel145 commented 2 weeks ago

fixed

Sanjaypatel145 commented 1 week ago

Still a problem occurs when user accidentally inserts "." two times the flow will throw error, eventually rebooting....

can you please suggest me to resolve this

mvladic commented 1 week ago

You can catch that error. Here is the updated project that does that:

lvgl_debug_keyboard_textarea_decimal_point.zip

mvladic commented 1 week ago

BTW to catch an error in some action enable "Catch error" option:

image

Sanjaypatel145 commented 1 week ago

Thanks a lot, let me try and will update you on the same.

On Fri, Nov 15, 2024 at 9:05 PM Martin Vladić @.***> wrote:

BTW to catch an error in some action enable "Catch error" option:

image.png (view on web) https://github.com/user-attachments/assets/0fe7e8e3-3ddc-434a-894a-024ee97a7e0d

— Reply to this email directly, view it on GitHub https://github.com/eez-open/studio/issues/605#issuecomment-2479198882, or unsubscribe https://github.com/notifications/unsubscribe-auth/BI6B3BOM6ZHRCCDIXV27BWT2AYIDTAVCNFSM6AAAAABQH354ISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZZGE4TQOBYGI . You are receiving this because you modified the open/close state.Message ID: @.***>

-- With warm regards,

Sanjay Patel

+91 94296 64057