How Drawmenu work's?
|
11-12-2016, 10:41 AM
(This post was last modified: 11-12-2016 10:45 AM by primer.)
Post: #10
|
|||
|
|||
RE: How Drawmenu work's?
Thank you for your comments,
(11-12-2016 01:36 AM)compsystems Wrote: suggestionssorry, I don't understand, can you exaplin what you want ? (11-12-2016 01:36 AM)compsystems Wrote: 2: A single argument for input as array,I make that choice to allow user to modify menu entries on the fly : you can update a menu entry in the WHILE loop without the need to redefine all. also it provide much more flexibility (see below about toggle feature) In general, for this kind of lib, I prefer to have more a kind of "oriented object" process => several methods. (even if it's not a class) IMO, hppl does not provide enough flexibility to create a nice "procedural" oriented process (missing optional function argument). (11-12-2016 01:36 AM)compsystems Wrote: 3: Please comment on each line, to learn how the event capturesThis lib have been made on calc itself, hence not a lot of text, but yes, good idea, next version will have more comment. but as it is now, it's not very difficult to follow yet. (11-12-2016 08:23 AM)StephenG1CMZ Wrote: An obvious improvement in functionality would be to also handle long-clicks, so the user can call two functions from one buttonyes, that's an idea... not for the comming version but one of the next. (11-12-2016 08:23 AM)StephenG1CMZ Wrote: Another possibility might be to also handle button events on the main screen, as well as on the bottom row...either by repeating the existing row, or having the user define more buttons.I already coded something like that : user can have more than 6 entries. in that case the 6th is "next", by pressing "next" libMenu show you the next 5 entries. for your info, on version 2, I am working on a toggle feature. this will allow user to define entries like that Code: LibMenu.entry(3,"caption","function()"); // example of usual menu entry if you have other ideas, you are welcomed. Regards, primer. primer |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)