Patch level : 10.0

Files correlati     : tutti
Ricompilazione Demo : [ ]
Commento            :
Aggiunti alcuni bottoni standard per toolbar


git-svn-id: svn://10.65.10.50/trunk@16680 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2008-05-30 12:40:13 +00:00
parent b4a9d9fc17
commit e70961c0c7
2 changed files with 10 additions and 2 deletions

View File

@ -58,14 +58,14 @@ BUTTON DLG_INFO 2 2
BEGIN
PROMPT 9 1 "Informazioni"
MESSAGE EXIT,K_F2
PICTURE 162
PICTURE BMP_INFO
END
BUTTON DLG_HELP 2 2
BEGIN
PROMPT 10 1 "Help"
MESSAGE EXIT,K_F1
PICTURE 163
PICTURE BMP_HELP
END
BUTTON DLG_CANCEL 2 2

View File

@ -130,9 +130,17 @@ void TButton_tool::create(WINDOW toolbar)
set_exit_key(K_ENTER);
break;
case DLG_HELP:
if (_ctl_data._prompt.empty())
_ctl_data._prompt = TR("Help");
if (_ctl_data._bmp_up <= 0)
_ctl_data._bmp_up = BMP_HELP;
set_exit_key(K_F1);
break;
case DLG_INFO:
if (_ctl_data._prompt.empty())
_ctl_data._prompt = TR("Informazioni");
if (_ctl_data._bmp_up <= 0)
_ctl_data._bmp_up = BMP_INFO;
set_exit_key(K_F2);
break;
default: