157 lines
2.9 KiB
XML
157 lines
2.9 KiB
XML
/*
|
||||
|
|
LCDTEST.RSS
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#include <hwim.rg>
|
|||
|
|
#include <hwim.rh>
|
|||
|
|
#include <s_.rsg>
|
|||
|
|
#include <symbols.h>
|
|||
|
|
#include <lcdtest.rg>
|
|||
|
|
|
|||
|
|
/* accelerators, menu bar and menu */
|
|||
|
|
RESOURCE WSERV_INFO accs_lcdview
|
|||
|
|
{
|
|||
|
|
menbar_id=menubar_lcdview;
|
|||
|
|
first_com=O_COM_EXIT;
|
|||
|
|
/* FT: following are accelerators for the main menu items.
|
|||
|
|
Comments by each show which main menu tile it belongs to */
|
|||
|
|
accel={'x', /* Exit */
|
|||
|
|
'b', /* Backlight */
|
|||
|
|
's' /* Sound */
|
|||
|
|
};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
RESOURCE MENU_BAR menubar_lcdview
|
|||
|
|
{
|
|||
|
|
items =
|
|||
|
|
{
|
|||
|
|
MENU_BAR_ITEM
|
|||
|
|
{
|
|||
|
|
menu_id=menu_control;
|
|||
|
|
mb_item="Control";
|
|||
|
|
},
|
|||
|
|
MENU_BAR_ITEM
|
|||
|
|
{
|
|||
|
|
menu_id=menu_special;
|
|||
|
|
mb_item="Special";
|
|||
|
|
}
|
|||
|
|
};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
RESOURCE MENU menu_control
|
|||
|
|
{
|
|||
|
|
items =
|
|||
|
|
{
|
|||
|
|
MENU_ITEM
|
|||
|
|
{
|
|||
|
|
com_id=O_CM_BACKLIGHT;
|
|||
|
|
mn_item="Backlight";
|
|||
|
|
},
|
|||
|
|
MENU_ITEM
|
|||
|
|
{
|
|||
|
|
com_id=O_CM_SOUND;
|
|||
|
|
mn_item="Sound";
|
|||
|
|
}
|
|||
|
|
};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
RESOURCE MENU menu_special
|
|||
|
|
{
|
|||
|
|
items =
|
|||
|
|
{
|
|||
|
|
MENU_ITEM
|
|||
|
|
{
|
|||
|
|
com_id=O_COM_EXIT;
|
|||
|
|
mn_item="Exit";
|
|||
|
|
}
|
|||
|
|
};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* String resources */
|
|||
|
|
RESOURCE STRING s_copyright
|
|||
|
|
{str="¸ Copyright Psion PLC 1994";}
|
|||
|
|
|
|||
|
|
/* Dialog resources */
|
|||
|
|
|
|||
|
|
RESOURCE DIALOG d_backlight
|
|||
|
|
{
|
|||
|
|
title="Set backlight";
|
|||
|
|
flags=DLGBOX_NOTIFY_ENTER|DLGBOX_RBUF_FILLED;
|
|||
|
|
controls=
|
|||
|
|
{
|
|||
|
|
CONTROL
|
|||
|
|
{
|
|||
|
|
class=C_CHLIST;
|
|||
|
|
flags=DLGBOX_ITEM_NOTIFY_CHANGED;
|
|||
|
|
prompt="Backlight";
|
|||
|
|
info=CHLIST {rid=-SYS_OFFON_MENU;};
|
|||
|
|
}
|
|||
|
|
};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
RESOURCE DIALOG d_sound
|
|||
|
|
{
|
|||
|
|
title="Make test sound";
|
|||
|
|
flags=DLGBOX_NOTIFY_ENTER|DLGBOX_RBUF_FILLED;
|
|||
|
|
controls=
|
|||
|
|
{
|
|||
|
|
CONTROL
|
|||
|
|
{
|
|||
|
|
class=C_NCEDIT;
|
|||
|
|
prompt="Duration (ticks)";
|
|||
|
|
info=NCEDIT {};
|
|||
|
|
},
|
|||
|
|
CONTROL
|
|||
|
|
{
|
|||
|
|
class=C_NCEDIT;
|
|||
|
|
prompt="Pitch (512/kHz)";
|
|||
|
|
info=NCEDIT {};
|
|||
|
|
}
|
|||
|
|
};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* Help resources */
|
|||
|
|
RESOURCE HELP_ARRAY h_help
|
|||
|
|
{
|
|||
|
|
topic="Lcdtest: 1.23w"; /* place holder for version number */
|
|||
|
|
topic_id=h_help_index;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
RESOURCE TOPIC_ARRAY h_help_index
|
|||
|
|
{
|
|||
|
|
id_lst=
|
|||
|
|
{
|
|||
|
|
h_numkeys,
|
|||
|
|
h_arrows
|
|||
|
|
};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
RESOURCE HELP_ARRAY h_numkeys
|
|||
|
|
{
|
|||
|
|
topic="Numeric keys";
|
|||
|
|
strlst=
|
|||
|
|
{
|
|||
|
|
STRING {str="0. Reverse video";},
|
|||
|
|
STRING {str="1. `HHH' pattern";},
|
|||
|
|
STRING {str="2. ON/OFF pattern";},
|
|||
|
|
STRING {str="3. All ON pattern";},
|
|||
|
|
STRING {str="4. All OFF pattern";},
|
|||
|
|
STRING {str="5. Grey pattern";},
|
|||
|
|
STRING {str="6. Random chars?";}
|
|||
|
|
};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
RESOURCE HELP_ARRAY h_arrows
|
|||
|
|
{
|
|||
|
|
topic="Arrow keys";
|
|||
|
|
strlst=
|
|||
|
|
{
|
|||
|
|
STRING {str="These move the grey";},
|
|||
|
|
STRING {str="pattern up or down";},
|
|||
|
|
STRING {str="& vary the start of";},
|
|||
|
|
STRING {str="the letter pattern.";},
|
|||
|
|
STRING {str="They do not affect";},
|
|||
|
|
STRING {str="any other pattern.";}
|
|||
|
|
};
|
|||
|
|
}
|