Post Reply 
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:  suggestions
1: on the libMenu directory, please write a subroutine to exit the menu
sorry, 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 captures
This 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 button
yes, 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
LibMenu.toggle(4,"caption",0); // user can toggle from false(0) to true(1)
...
LibMenu.gettoggle(4); // return the toggle state, 0 or 1

if you have other ideas, you are welcomed.

Regards,
primer.

primer
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
How Drawmenu work's? - fabio.hdl - 11-03-2016, 05:02 PM
RE: How Drawmenu work's? - Han - 11-03-2016, 06:41 PM
RE: How Drawmenu work's? - Tyann - 11-03-2016, 07:02 PM
RE: How Drawmenu work's? - StephenG1CMZ - 11-03-2016, 08:58 PM
RE: How Drawmenu work's? - toml_12953 - 11-04-2016, 02:28 PM
RE: How Drawmenu work's? - primer - 11-11-2016, 07:31 PM
RE: How Drawmenu work's? - fabio.hdl - 11-05-2016, 08:22 PM
RE: How Drawmenu work's? - compsystems - 11-12-2016, 01:36 AM
RE: How Drawmenu work's? - primer - 11-12-2016 10:41 AM
RE: How Drawmenu work's? - compsystems - 11-12-2016, 02:53 PM
RE: How Drawmenu work's? - primer - 11-12-2016, 08:36 PM
RE: How Drawmenu work's? - StephenG1CMZ - 11-12-2016, 08:23 AM
RE: How Drawmenu work's? - compsystems - 11-12-2016, 09:05 PM
RE: How Drawmenu work's? - primer - 11-12-2016, 10:04 PM
RE: How Drawmenu work's? - compsystems - 11-14-2016, 04:03 AM
RE: How Drawmenu work's? - StephenG1CMZ - 11-14-2016, 09:03 AM
RE: How Drawmenu work's? - ggauny@live.fr - 01-25-2017, 12:11 PM
RE: How Drawmenu work's? - ggauny@live.fr - 01-25-2017, 05:06 PM
RE: How Drawmenu work's? - primer - 01-25-2017, 11:18 PM



User(s) browsing this thread: 1 Guest(s)