%
% anyremote configuration file for  customization of GUI of Java client. (Server-mode)
%

% STATUS stable
% XTEST no
% SOUND no
% ENV no

GuiAppName=Main screen configuration example
GuiAppType=Example
GuiAppBinary=true
GuiAppProtocols=Server
GuiAppDesc=Example of anyRemote Android/J2ME clients main screen customization.

[Protocol]=Server

(Init)=\
	Include($(CfgDir)/Utils/aliases-server.cfg);\
	Exec(echo Initialized);
	
(Connect)=\
    Set(popup,show,Please wait);\
	Set(parameter,debug,on);\
	Exec(echo Connected);\
	Set(status,);\
	Set(title,Use menu or buttons);\
	Set(icons,Icons Example,\
		1,fit,2,fit,3,fit,\
		4,fit,5,fit,6,fit,\
		7,fit,8,fit,9,fit,\
		*,question,0,fit,#,fit);\
	Set(layout,default);\
	Macro(SET_MENU);\
    ExecAndSet(caption,sleep 1;echo "Icons Example...");\
    Set(popup,hide);

(Disconnect)=\
	Exec(echo Disconnected);

* *=Set(popup,show,Please wait);Set(text,replace,Help,Use menu or buttons);Set(popup,hide);

SET_MENU=\
	Set(menu,replace,Player Icons,Player Icons 2,Picture Viewer Icons,White On Black,Black On White);

Back=Set(popup,show,Please wait);Set(text,close);Macro(SET_MENU);Set(popup,hide);

% Menu handlers 
White On Black=Set(bg,#000000);Set(fg,#FFFFFF);
Black On White=Set(bg,#FFFFFF);Set(fg,#000000);

Player Icons=\
	Set(icons,Icons Example,\
		1,vol_down,2,mute,3,vol_up,\
		4,rewind,5,play,6,forward,\
		7,prev,8,stop,9,next,\
		*,question,0,pause,#,no);\
	Set(layout,default);

Player Icons 2=\
	Set(icons,Icons Example,\
		1,prev,2,rewind,3,play,\
		4,pause,5,forward,6,next,\
		7,stop,8,none,9,none,\
		*,none,0,none,#,none);\
	Set(layout,7x1);

Picture Viewer Icons=\
 	Set(icons,Icons Example,\
		1,none,2,plus,3,none,\
		4,rewind,5,fit,6,forward,\
		7,none,8,minus,9,none,\
		*,question,0,fullscreen,#,no);\
	Set(layout,default);

1=Set(status,button 1);
2=Set(status,button 2);
3=Set(status,button 3);

4=Set(status,button 4)
5=Set(status,button 5)
6=Set(status,button 6)

7=Set(status,button 7)
8=Set(status,button 8)
9=Set(status,button 9)

0=Set(status,button 0)
#=Set(status,button #)

[End]
