Post Reply 
CSTMENU: multilevel custom menu with soft keys
06-06-2022, 07:20 AM (This post was last modified: 06-06-2022 09:00 AM by FrankP.)
Post: #13
RE: CSTMENU: multilevel custom menu with soft keys
I guess different processing speed on the 2 HPs could result in flickering effect for DRAWMENU, TEXTOUT_P on one of them. You might reduce flickering of the title display by only updating tile text when a directional key pad action has occured. For example by encapsulating the TEXTOUT with IF:
Code:

 IF TYPE(w)<>6 THEN // no Mouse event
  IF w==7 OR w==8 OR w==2 OR w==12 THEN // directional pad
   // TEXTOUT_P(text, [G], x, y, [font], [textColor], [width], [backgroundColor]) returns text width
   TEXTOUT_P("                                                                                 ",G0,45,2,3,#FFFFFFh,200,#2F2F2Fh);
   TEXTOUT_P(menuTITLE,G0,130-TEXTOUT_P("A",G1,0,0)*DIM(menuTITLE)/2,2,3,#FFFFFFh,200,#2F2F2Fh);
   TEXTOUT_P("m."+CSTpos(1)+"/"+lmenu+" p."+CSTpos(2)+"/"+lpos,G0,185,8,1,#F0F0F0h,200,#2F2F2Fh);
  END;
 END;
Using Prime only on an outdated Android I can't do any tests. Good luck!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: CSTMENU: multilevel custom menu with soft keys - FrankP - 06-06-2022 07:20 AM



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