Post Reply 
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Code snippet: drawmenu with catching user action - Stefan - 02-24-2014 06:26 PM



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