70 lines
1.2 KiB
XML
70 lines
1.2 KiB
XML
/*
|
|||
|
|
Resource file for timer demonstration program
|
||
|
|
*/
|
||
|
|
|
||
|
|
#include <hwim.rg>
|
||
|
|
#include <hwim.rh>
|
||
|
|
#include <dat.rg>
|
||
|
|
#include <dat.rsg>
|
||
|
|
|
||
|
|
RESOURCE WSERV_INFO tim_accs
|
||
|
|
{
|
||
|
|
menbar_id=tim_menu;
|
||
|
|
first_com=O_COM_EXIT;
|
||
|
|
/* follows order in cat file command manager */
|
||
|
|
accel={'x', /* Exit */
|
||
|
|
's' /* Set current date */
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
RESOURCE MENU_BAR tim_menu
|
||
|
|
{
|
||
|
|
items =
|
||
|
|
{
|
||
|
|
MENU_BAR_ITEM
|
||
|
|
{
|
||
|
|
menu_id=options_menu;
|
||
|
|
mb_item="Options";
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
RESOURCE MENU options_menu
|
||
|
|
{
|
||
|
|
items =
|
||
|
|
{
|
||
|
|
MENU_ITEM
|
||
|
|
{
|
||
|
|
com_id=O_COM_DATE;
|
||
|
|
mn_item="Current date";
|
||
|
|
},
|
||
|
|
MENU_ITEM
|
||
|
|
{
|
||
|
|
com_id=O_COM_EXIT;
|
||
|
|
mn_item="Exit";
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
RESOURCE STRING month_day_reset
|
||
|
|
{
|
||
|
|
str="Day exceeds days in month: reset";
|
||
|
|
}
|
||
|
|
|
||
|
|
RESOURCE DIALOG date_dl_res
|
||
|
|
{
|
||
|
|
title="Current date";
|
||
|
|
flags=DLGBOX_NOTIFY_ENTER;
|
||
|
|
controls=
|
||
|
|
{
|
||
|
|
CONTROL
|
||
|
|
{
|
||
|
|
class=C_DATE;
|
||
|
|
flags=DLGBOX_ITEM_CENTRE|DLGBOX_ITEM_APPL_CAT;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|