Patch level : 2.0 552
Files correlati : cg3.exe Ricompilazione Demo : [ ] Commento : CM20042 Il doppio clic sulla riga di una registrazione non mi collega direttamente alla scrittura di prima nota. git-svn-id: svn://10.65.10.50/trunk@11373 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
347c1d3901
commit
5e7134ef78
@ -1603,10 +1603,8 @@ bool TGrid_control::event_handler(XI_OBJ* itf, XI_EVENT *xiev)
|
||||
{
|
||||
if (xiev->v.select.column == 0)
|
||||
{
|
||||
#ifndef XI_R4
|
||||
_cur_rec = rec; // Assegno subito il record corrente
|
||||
_grid->on_record_button(rec);
|
||||
#endif
|
||||
if (_read_only)
|
||||
refused = TRUE;
|
||||
}
|
||||
@ -2505,8 +2503,12 @@ void TMastrini_grid::on_grid_button()
|
||||
void TMastrini_grid::on_record_button(long rec)
|
||||
{
|
||||
TWait_cursor hourglass;
|
||||
|
||||
const TRectype& testata = _mastrino.testata(rec);
|
||||
|
||||
bool refresh = testata.edit(); // Nuovo metodo bello ed elegante
|
||||
|
||||
if (!refresh) // Vecchio modo brutto ed obsoleto da rimuovere
|
||||
{
|
||||
TString text;
|
||||
text << "1|" << testata.get(MOV_NUMREG);
|
||||
|
||||
@ -2519,11 +2521,11 @@ void TMastrini_grid::on_record_button(long rec)
|
||||
mask().set_focus();
|
||||
|
||||
TMailbox mail;
|
||||
if (mail.next_s(MSG_LN) != NULL)
|
||||
{
|
||||
if (yesno_box(TR("Si desidera aggiornare il mastrino?")))
|
||||
reread();
|
||||
refresh = mail.next_s(MSG_LN) != NULL;
|
||||
}
|
||||
|
||||
if (refresh && yesno_box(TR("Si desidera aggiornare il mastrino?")))
|
||||
reread();
|
||||
}
|
||||
|
||||
// Posso ridimensionare solo le descrizioni, le altre devono rimanere fisse per
|
||||
|
Loading…
x
Reference in New Issue
Block a user