Post Reply 
Question about "User keyboard usage". Beta2 FW
11-22-2017, 11:34 AM
Post: #3
RE: Question about "User keyboard usage". Beta2 FW
(11-21-2017 10:21 PM)dg1969 Wrote:  1) Can we do more inside a KEY redefinition than just a RETURN "blabla_function"?
Supposedly yes, but adding code before the RETURN can cause problems especially with integrated interfaces.
Example: PRINT, MSGBOX, INPUT, etc
It is preferable to just return strings, since that is the purpose of a redefinition.

You can return reals like:
-2+: Default value
-1: It does not do anything
0-50: Default according to key ID
51-101: Default according to key ID + Shift
102-152: Default according to key ID + ALPHA
153-203: Default according to key ID + Shift + ALPHA
204+: Default value

Example:

K_Ln return 100 → ID 49 + Shift → "_"
Code:
KEY K_Ln()
BEGIN
LOCAL i;
 PRINT();
 FOR i FROM 1 TO 100 DO
   PRINT(i);
 END;
END;

K_Minus return 5050 → Deafult value → "-"
Code:
KEY K_Minus()
BEGIN
LOCAL i,k:=0;
  FOR i FROM 1 TO 100 DO
    k:=k+i;
  END;
END;


(11-21-2017 10:21 PM)dg1969 Wrote:  2) Where can we find, in the calculator menu, all the redefinitions realized in various programs?
There is no menu that summarizes the redefinitions

Viga C | TD | FB
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Question about "User keyboard usage". Beta2 FW - Carlos295pz - 11-22-2017 11:34 AM



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