Hi guys,
I am currently working on my first widget for Fenix 5 smartwatches and it is kind of working already. But I have a few questions about the general approach for app structures. I think I have understood how the delegation pattern is implemented in MonkeyC. Basically whenever a view can be defined the second array element can be passed as the delegation object that handles user input. Now the questions are:
1. what about the concept of controllers. I have found some examples "hacking" around to have a central object "controlling" the app (or app screen, which I would prefer), but this seems to not be a standard concept in MonkeyC, or am I missing something?
2. Communication between view and delegate: when a user does some input on the current app screen, what is the best way to tell the view to do something? A very simple example in my case is, I have one view containing a big text box (bigger then the screen height) and I would like to scroll down the text when the "page down" button is pressed. I am able to capture the key but how to tell the view to take action from the delegate object?
3. Is it possible to access the delegate from the view?
4. another topic: what buttons can be captured from the first widget screen? At the moment I have found "onSelect" and "onMenu" to be working. Is there any other button that can be used?
Thanks!
Bye