Post Reply 
Latest update kills Entry Mode Switcher
05-01-2016, 02:45 AM
Post: #6
RE: Latest update kills Entry Mode Switcher
(04-30-2016 09:56 AM)DrD Wrote:  You can see the entry mode longer by adding a delay after TEXTOUT_P():

WAIT(n); // See Help for options

-Dale-

Thanks, that's actually really close to what I need. 300ms is a better delay and WAIT is too coarse. But spinning for a bit doesn't seem to hurt anything:

Code:

// Cycles over entry mode options. 
KEY K_On() 
BEGIN 
LOCAL an:={"Textbook","Algebraic","RPN"}; 
Entry:=(Entry+1)MOD3; 

STARTVIEW(-8,1); // Out to ANY AVAILABLE view... 
STARTVIEW(-1,1); // ... and back in, to refresh 

TEXTOUT_P(an(Entry+1),G0,2,207,2,RGB(255,0,0)); 
waitms(300);
END;

Code:

EXPORT waitms(ms)
BEGIN
  local T0;
  T0 := TICKS;
  while (TICKS-T0) < ms DO
  end;
END;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Latest update kills Entry Mode Switcher - jgreenb2 - 05-01-2016 02:45 AM



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