Patch level : 12.0 342

Files correlati     : pa0.exe

Agginto il bottone seleziona tutti all'invio fatture PA

git-svn-id: svn://10.65.10.50/branches/R_10_00@23593 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
bonazzi 2017-02-08 23:10:54 +00:00
parent 5d93073c2b
commit 9d541928e6
5 changed files with 23 additions and 0 deletions

8
src/include/allbar.h Normal file
View File

@ -0,0 +1,8 @@
BUTTON DLG_ALL 2 2
BEGIN
PROMPT 1 1 "~Tutti"
PICTURE TOOL_MULTISEL
END
#include <elabar.h>

View File

@ -49,6 +49,7 @@
#define DLG_COPY 45 /* TAG del bottone copia */
#define DLG_PASTE 46 /* TAG del bottone incolla */
#define DLG_BARCODE_TYPE 47 /* TAG del tipo codice a barre */
#define DLG_ALL 48 /* TAG del bottone Tutti */
#define DLG_USER 100 /* TAG del primo controllo definito dall'utente */

View File

@ -1373,6 +1373,11 @@ void TButton_field::create(WINDOW parent)
_ctl_data._bmp_up = BMP_SELECT;
_exit_key = K_ENTER;
break;
case DLG_ALL:
if (_ctl_data._bmp_up <= 0)
_ctl_data._bmp_up = BMP_SELECT;
_virtual_key = K_CTRL + 'T';
break;
default:
break;
}

View File

@ -189,6 +189,9 @@ public:
// @cmember Tronca la stringa alla posizione n-esima.
TString& cut(int n);
// @cmember Svouta la stringa.
TString& zap() { return cut(0); }
// @cmember Ritorna il buffer interno della stringa (usare con attenzione!)
char* get_buffer(int min_size = -1);

View File

@ -131,6 +131,12 @@ void TButton_tool::create(WINDOW toolbar)
_ctl_data._bmp_up = TOOL_MULTISEL;
set_exit_key(K_ENTER);
break;
case DLG_ALL:
if (_ctl_data._bmp_up <= 0)
_ctl_data._bmp_up = TOOL_MULTISEL;
_virtual_key = K_CTRL + 'T';
break;
case DLG_HELP:
if (_ctl_data._prompt.blank())
_ctl_data._prompt = TR("Help");