From f978a256e27f7199cd773729cbc6ae047a315f52 Mon Sep 17 00:00:00 2001 From: angelo Date: Tue, 17 Sep 1996 17:30:16 +0000 Subject: [PATCH] Invertiti i pulsanti Fine e menuprecedente. git-svn-id: svn://10.65.10.50/trunk@3612 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ba/ba0.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/ba/ba0.cpp b/ba/ba0.cpp index 678017dae..3fd512dd9 100755 --- a/ba/ba0.cpp +++ b/ba/ba0.cpp @@ -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);