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)
|
if (xiev->v.select.column == 0)
|
||||||
{
|
{
|
||||||
#ifndef XI_R4
|
|
||||||
_cur_rec = rec; // Assegno subito il record corrente
|
_cur_rec = rec; // Assegno subito il record corrente
|
||||||
_grid->on_record_button(rec);
|
_grid->on_record_button(rec);
|
||||||
#endif
|
|
||||||
if (_read_only)
|
if (_read_only)
|
||||||
refused = TRUE;
|
refused = TRUE;
|
||||||
}
|
}
|
||||||
@ -2505,8 +2503,12 @@ void TMastrini_grid::on_grid_button()
|
|||||||
void TMastrini_grid::on_record_button(long rec)
|
void TMastrini_grid::on_record_button(long rec)
|
||||||
{
|
{
|
||||||
TWait_cursor hourglass;
|
TWait_cursor hourglass;
|
||||||
|
|
||||||
const TRectype& testata = _mastrino.testata(rec);
|
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;
|
TString text;
|
||||||
text << "1|" << testata.get(MOV_NUMREG);
|
text << "1|" << testata.get(MOV_NUMREG);
|
||||||
|
|
||||||
@ -2519,11 +2521,11 @@ void TMastrini_grid::on_record_button(long rec)
|
|||||||
mask().set_focus();
|
mask().set_focus();
|
||||||
|
|
||||||
TMailbox mail;
|
TMailbox mail;
|
||||||
if (mail.next_s(MSG_LN) != NULL)
|
refresh = mail.next_s(MSG_LN) != NULL;
|
||||||
{
|
|
||||||
if (yesno_box(TR("Si desidera aggiornare il mastrino?")))
|
|
||||||
reread();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (refresh && yesno_box(TR("Si desidera aggiornare il mastrino?")))
|
||||||
|
reread();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Posso ridimensionare solo le descrizioni, le altre devono rimanere fisse per
|
// Posso ridimensionare solo le descrizioni, le altre devono rimanere fisse per
|
||||||
|
Loading…
x
Reference in New Issue
Block a user