Post Reply 
How Drawmenu work's?
11-12-2016, 02:53 PM (This post was last modified: 11-12-2016 03:02 PM by compsystems.)
Post: #11
RE: How Drawmenu work's?
(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 ?

To exit the menu, you have to press the [on] key, then "Program interrupted" =(
A function is required to exit
entry(6,"exit","tstLibM.exitMenu()");

There is a problem, when the menu is on the terminal view. The menu is not updated
PHP Code:
EXPORT LibMenuTest()
BEGIN
    
print();
    print(
"test menu on terminal view"); freeze;
    
LibMenu.reset();
    
entry(1,"print1","tstLibM.f1()");
    
entry(2,"print2","tstLibM.f2()");
    
entry(3,"print3","tstLibM.f3()");
    
entry(6,"exit","tstLibM.exitMenu()");
    
    
LibMenu.draw();
    WHILE 
DO
        
LibMenu.events();
    
END;
END;

f1()
BEGIN
    
print("expr1: a/b"); wait;
END;

f2()
BEGIN
    
print("expr2: x^2"); wait;
END;

f3()
BEGIN
    
print("expr3: abs(-x)"); wait;
END;


exitMenu()
begin
    
return 0;
end

PHP Code:
callit(F)
BEGIN
  
IF F=="" THEN RETURN; END;
  
draw();
  
EXPR(F);
  
draw();
END
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: 2 Guest(s)