Using E.showMenu() and Bangle.js Layout Library together #5962
Replies: 1 comment
-
Posted at 2023-06-01 by stweedo It's far from finished and there may be other bugs and errors, but here is the program I'm making. It's an Ohm's Law Calculator. This problem has been holding me back all day so I would really like to solve it, especially since it seems trivial.
Posted at 2023-06-01 by @thyttan It reminded me a little bit of a problem @Sir_Indy and I solved. Reference this comment and the one following it: https://forum.espruino.com/conversations/375573/#16515419 It might not be what you need, didn't look through your code now. Might take a closer look tomorrow night 🙂 Posted at 2023-06-01 by stweedo Hey, thanks for the reply. I did try placing layout.render() in different parts of my code but it didn't help. I'll have to check out that keyboard you helped make. Can't say I've tried using any keyboards on this watch so far, but I like the idea of using the swipe handler to do backspace or maybe as a back button replacement on the input screen in my case. Posted at 2023-06-02 by Philip Wherever you are calling
Seems to work for me when running your code. I just finished a keyboard app and I ended up needing to do that every time I switched to a particular layout. Posted at 2023-06-02 by stweedo @philip That was it! Thank you so much! Posted at 2023-06-02 by stweedo If anyone is curious to try out my new Ohm's Law Calculator app you can do so here. Thank you again Philip, I was really struggling with that menu transition to the layout and back. You rock! Another challenging task is still on my to do list: Get it to show the formula that was used as an expression with the letter placeholders like so "V = I*R" and then when that menu item is pressed it opens up a formula display page in a large font with the formula shown using the actual values now instead of the letters. Posted at 2023-06-05 by @gfwilliams Great! I think the issue was that the menu was grabbing the UI as you noted. Either generating the layout when you want to use it (or maybe using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2023-06-01 by stweedo
I'm having trouble getting my layout to work when called from within a menu. It seems to keep the menu running in the background even after clearing the screen. My layout is displayed but the on screen buttons aren't usable.
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions