Code snippet: drawmenu with catching user action
|
02-24-2014, 06:26 PM
(This post was last modified: 03-03-2014 10:09 PM by Stefan.)
Post: #1
|
|||
|
|||
Code snippet: drawmenu with catching user action
Here is a code snippet which someone might find useful. I adapted an earlier example of veeblefester, and made it a little bit shorter.
It can be used as a drop-in replacement for the drawmenu() function: The function takes as argument a list with the labels for the 6 softbuttons. It returns the ID of the button which was pressed. Edit: Thanks to Han a better version is available in my post below. I removed the old code. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Code snippet: drawmenu with catching user action - Stefan - 02-24-2014 06:26 PM
RE: Code snippet: drawmenu with catching user action - Han - 03-01-2014, 05:04 AM
RE: Code snippet: drawmenu with catching user action - Stefan - 03-03-2014, 10:08 PM
RE: Code snippet: drawmenu with catching user action - patrice - 03-04-2014, 04:52 AM
RE: Code snippet: drawmenu with catching user action - Tim Wessman - 03-03-2014, 10:37 PM
RE: Code snippet: drawmenu with catching user action - Han - 03-04-2014, 03:43 AM
RE: Code snippet: drawmenu with catching user action - Stefan - 03-04-2014, 03:36 PM
RE: Code snippet: drawmenu with catching user action - Han - 03-04-2014, 04:02 PM
|
User(s) browsing this thread: 1 Guest(s)