form.cpp Corretta imperfezione sulla riga di poszionamento della X
maskfld.cpp Corretta gestione focusdirty dei listfield git-svn-id: svn://10.65.10.50/trunk@3630 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
feaeb40e8b
commit
9351353bc3
@ -3601,7 +3601,7 @@ void TForm::arrange_form()
|
||||
#endif
|
||||
str_pos = ""; //Azzera la stringa di posizionamento
|
||||
for (i=1; i < _ipx; i++) str_pos << " "; //Aggiunge gli spazi necessari...
|
||||
if (_ipx > 0 && _ipy > 0)
|
||||
if (_ipx > 0)
|
||||
str_pos << _char_to_pos; // aggiunge il primo carattere di posizionamento...
|
||||
x = _fpx - _ipx ; // calcola quanti spazi aggiungere...
|
||||
for (i=1; i < x; i++) str_pos << " ";
|
||||
|
@ -3722,14 +3722,20 @@ bool TList_field::on_hit()
|
||||
}
|
||||
|
||||
bool TList_field::on_key(KEY key)
|
||||
{
|
||||
if (key == K_SPACE)
|
||||
{
|
||||
{
|
||||
switch(key)
|
||||
{
|
||||
case K_CTRL+K_TAB:
|
||||
set_focusdirty(FALSE);
|
||||
break;
|
||||
case K_SPACE:
|
||||
get_window_data();
|
||||
set_dirty();
|
||||
return on_hit();
|
||||
}
|
||||
else
|
||||
case K_F2:
|
||||
current(0);
|
||||
break;
|
||||
default:
|
||||
if (to_check(key, TRUE))
|
||||
{
|
||||
bool ok = TRUE;
|
||||
@ -3743,9 +3749,8 @@ bool TList_field::on_key(KEY key)
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
if (key == K_F2)
|
||||
current(0);
|
||||
break;
|
||||
}
|
||||
return TEditable_field::on_key(key);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user