New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using input widgets without a toutchscreen #14
Comments
Hi, Yes, you are right. There is no "native" support for this feature. But I like it! Thank you for the idea. I've already figured out how to realize it. On Monday I will send you an example implementation. |
What do you think about it? |
Yeh that is exactly what I need, lists and comboboxes require auto scroling to the active item though |
Ok I have looked at the attached code and understand your solution. I was thinking about the possibility of making the active state a property of the graphical object with it's own style (e.g. LV_STYLE_BTN_ACTIVE). Also having the library handling the active states automagicaly by having functions to change the active item to the next or previous item (like tab indexes on frameworks like Qt or .NET), and to send signal to them like activeitemclick() |
Great! Yes, I was thinking on something similar too. This functionality can be integrated to the library but it means a lot of work to implement all the handler functions for different object types. |
I had some free time so I implemented one part of it. Now you can create groups from objects and activate next or previous. A callback function belongs to every object group to modify the style of the active object. For example: The next step is to implement new signals when an object is activated and its value increased/decreased. https://www.youtube.com/watch?v=FUDmUKaejFg&feature=youtu.be I create a new branch called lv_group for this feature What do you think? |
There are many devices not equipped with touch screens, so it is necessary to use buttons。 |
I added a full featured sub system called lv_group to the See an example here: https://github.com/littlevgl/lvgl/blob/beta/lv_examples/2_2_encoder_ctrl/encoder_ctrl.c Can you try it? |
The update is released in v4.2.0. |
I'm sorry for the lack of feedback, I'm currently on vacations and don't have the hw required to test the new code. |
No problem, just enjoy your holiday! :) |
Show switch animation in lv_test_theme
Update lodepng to 20201017 release
Hi,
I would like to use the library on a system with just a clickable rotary encoder as an input device. How can I accomplish that since the library doesn't seem to have the active widget state?
i.e. rotate the encoder changes the active button (or list item or whatever) and clicking on it sends a "click" to the active widget.
The text was updated successfully, but these errors were encountered: