1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
|
%
% anyremote configuration file for customization of GUI of Java client. (Server-mode)
%
% STATUS stable
% XTEST no
% SOUND no
% ENV no
GuiAppName=List example
GuiAppType=Example
GuiAppBinary=true
GuiAppProtocols=Server
GuiAppDesc=Example of anyRemote Android/J2ME clients list screen customization.
[Protocol]=Server
(Init)=\
Include($(CfgDir)/Utils/aliases-server.cfg);
(Connect)=\
Set(parameter,debug,on);\
Set(status,);\
Set(title,Use menu or buttons);\
Set(icons,List Example,\
1,fit,2,fit,3,fit,\
4,fit,5,fit,6,fit,\
7,fit,8,fit,9,fit,\
*,question,0,fit,#,fit);\
Macro(SET_MENU);
* *=Set(text,replace,Help,1 List add items\n2 List replace items\n3 List clear\n4 Small font\n5 Medium font\n6 Large font\n7 White On Black\n8 Yellow On Blue\n9 Black On White)
SET_MENU=Set(menu,replace,Add items,Replace items,Clear items,Small font,Medium font,Large font,White On Black, Yellow On Blue, Black On White,Use Icon,No Icon);
%SET_MENU=Set(menu,replace,Add items,Replace items,Clear items,Small font,Medium font);
%SET_MENU=Set(menu,replace,Add items,Replace items,Clear items);
Back($$) =Set(list,close);Macro(SET_MENU);
Select($$)=Set(list,close);Macro(SET_MENU);
Back =Set(text,close);Macro(SET_MENU);
Push($$) =Set(list,close);Set(status,$(Index) - $(Param));Macro(SET_MENU);
%1=ExecAndSet(text,add,Example,cat $HOME/text.txt);
1=Macro(Add items)
2=Macro(Replace items)
3=Macro(Clear items)
4=Macro(Small font)
5=Macro(Medium font)
6=Macro(Large font)
7=Macro(White On Black)
8=Macro(Yellow On Blue)
9=Macro(Black On White)
% Handlers of menu of "button-screen"
Add items=\
Set(list,add,Example,Item 1,Item 2,Item 3);\
Macro(SET_MENU);
Replace items=\
Set(list,replace,Example,Item1,Item2,Item3);\
Macro(SET_MENU);
Clear items=\
Set(list,clear);\
Macro(SET_MENU);
Small font=\
Set(list,font,small);\
Set(list,show);\
Macro(SET_MENU);
Medium font=\
Set(list,font,medium);\
Set(list,show);\
Macro(SET_MENU);
Large font=\
Set(list,font,large);\
Set(list,show);\
Macro(SET_MENU);
White On Black=\
Set(list,bg,0,0,0);\
Set(list,fg,255,255,255);\
Set(list,show);\
Macro(SET_MENU);
Black On White=\
Set(list,bg,255,255,255);\
Set(list,fg,0,0,0);\
Set(list,show);\
Macro(SET_MENU);
Yellow On Blue=\
Set(list,bg,0,128,255);\
Set(list,fg,255,255,0);\
Set(list,show);\
Macro(SET_MENU);
Use Icon=\
Set(list,icon,ok);\
Set(list,show);\
Macro(SET_MENU);
No Icon=\
Set(list,icon,none);\
Set(list,show);\
Macro(SET_MENU);
% Handlers of menu of "list-screen"
Add items($$)=\
Exec(echo 'Add items($(Index),$(Param))');\
Set(list,add,Example,Item1,Item2,Item3);
Replace items($$)=\
Exec(echo 'Replace items($(Index),$(Param))');\
Set(list,replace,Example,Item1,Item2,Item3);
Clear items($$)=\
Exec(echo 'Clear items($(Index),$(Param))');\
Set(list,clear);
Use Icon($$)=\
Set(list,icon,ok);\
Set(list,show);\
Macro(SET_MENU);
No Icon($$)=\
Set(list,icon,none);\
Set(list,show);\
Macro(SET_MENU);
Small font($$) =Set(list,font,small);
Medium font($$) =Set(list,font,medium);
Large font($$) =Set(list,font,large)
White On Black($$)=Set(list,bg,0,0,0);Set(list,fg,255,255,255);
Black On White($$)=Set(list,bg,255,255,255);Set(list,fg,0,0,0);
Yellow On Blue($$)=Set(list,bg,0,128,255);Set(list,fg,255,255,0);
[End]
|