Post Reply 
Add button to program screen
04-17-2022, 01:28 AM
Post: #2
RE: Add button to program screen
This code may give you an idea

Code:

EXPORT TESTMENU()
BEGIN

 LOCAL mSEL,my,mx,m,m1;
  REPEAT
    WHILE MOUSE(1)≥0 DO END;
    DRAWMENU("1CONT","","","","","6ABORT");
    REPEAT
      m := MOUSE;
      m1 := m(1);
    UNTIL SIZE(m1)>0;
    mx := B→R(m1(1)); 
    my := B→R(m1(2));
    mSEL := 0;
    IF my≥220 AND my≤239 THEN
      IF mx≥0 AND mx≤51 THEN
        mSEL := 1;
      END;
      IF mx≥265 AND mx≤319 THEN
        mSEL := 6;
      END;
    END;
    IF mSEL == 1 THEN
       PRINT();
       PRINT("1");
    END;
    IF mSEL == 6 THEN
       PRINT();
       PRINT("6");
    END;
    
  UNTIL mSEL==6  OR mSEL==1;
END;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Add button to program screen - Grayhek - 04-16-2022, 05:07 PM
RE: Add button to program screen - Dougggg - 04-17-2022 01:28 AM
RE: Add button to program screen - tgallo - 04-20-2022, 10:34 PM



User(s) browsing this thread: