Invertiti i pulsanti Fine e menuprecedente.

git-svn-id: svn://10.65.10.50/trunk@3612 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
angelo 1996-09-17 17:30:16 +00:00
parent a8dda0d407
commit f978a256e2

View File

@ -746,15 +746,16 @@ int TMenu_application::do_level()
TEdit_field& ef = menu.add_string(DLG_USER, 0, "", -12, -3, 50, "", bwidth+1);
ef.set_handler(menu_find_handler);
TButton_field& bf = menu.add_button(DLG_QUIT, 0, "Fine", -12, -1, bwidth, 2);
RCT e_rct; ef.get_rect(e_rct); // Rettangolo cerca
RCT b_rct; bf.get_rect(b_rct); // Rettangolo bottone
b_rct.left = e_rct.left-2; // Aggiusta rettangolo
b_rct.right = e_rct.right+2;
bf.set_rect(b_rct); // Modifica bottone
if (first)
TButton_field& bf = menu.add_button(DLG_QUIT, 0, "Fine", first ? -12 : -22, -1, bwidth, 2);
if (first)
{
RCT e_rct; ef.get_rect(e_rct); // Rettangolo cerca
RCT b_rct; bf.get_rect(b_rct); // Rettangolo bottone
b_rct.left = e_rct.left-2; // Aggiusta rettangolo
b_rct.right = e_rct.right+2;
bf.set_rect(b_rct); // Modifica bottone
menu.add_button(DLG_CANCEL, 0, "Menu precedente", -22, -1, bwidth, 2);
}
if (_find_button && _last_button > first)
menu.first_focus(100+_last_button-first);