controls : corretta creazione maschere non a tutto schermo

mask     : evitata doppia elaborazione della pressione di un bottone


git-svn-id: svn://10.65.10.50/trunk@2899 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1996-05-23 15:36:50 +00:00
parent 72d1bcd8db
commit 1b43bec377
3 changed files with 20 additions and 2 deletions

View File

@ -308,7 +308,7 @@ WINDOW create_interface(WINDOW parent, short x, short y, short dx, short dy,
XI_OBJ* itf = xi_create(NULL, def);
CHECK(itf, "Can't create an interface");
xi_dequeue();
xi_tree_free(def);
@ -326,6 +326,16 @@ WINDOW create_interface(WINDOW parent, short x, short y, short dx, short dy,
xi_set_pref(XI_PREF_VERT_PIXEL_SPACING, spacing);
}
if (normal)
{
xi_pu_to_fu(itf, (PNT*)&r, 2);
r.right = r.left + (dx+1) * XI_FU_MULTIPLE;
r.bottom = r.top + (dy+1) * Y_FU_MULTIPLE;
xi_fu_to_pu(itf, (PNT*)&r, 2);
xvt_vobj_translate_points(win, xvt_vobj_get_parent(win), (PNT*)&r, 2);
xvt_vobj_move(win, &r);
}
if (tag)
{
XI_RCT rct; xi_get_xi_rct(itf, &rct);

View File

@ -529,6 +529,11 @@ bool TMask::stop_run(
return TWindow::stop_run(key);
}
void TMask::on_button(short)
{
/* Non devo fare niente !!! non essendo una TWindow */
}
// @doc EXTERNAL
// @mfunc Assegna una azione al tasto non standard

View File

@ -277,7 +277,10 @@ public:
// @cmember Disabilita la lettura dei check della maschera
void disable_starting_check()
{ _should_check = FALSE;}
// @cmember Evita che venga chiamata la TWindow
virtual void TMask::on_button(short);
// @cmember Assegna una azione al tasto non standard
virtual bool on_key(KEY key);
// @cmember Aggiorna i campi con i valori salvati una volta che non ci sono processi attivi