Sistemate alcune caciotte alla creazione di un nuovo Form_item
git-svn-id: svn://10.65.10.50/trunk@1427 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
18f266696b
commit
58e761ff5e
@ -312,7 +312,7 @@ public:
|
||||
|
||||
|
||||
TForm_item::TForm_item(TPrint_section* section)
|
||||
: _section(section), _x(-1), _y(-1), _width(0), _height(0)
|
||||
: _section(section), _x(-1), _y(-1), _width(0), _height(0), _id(0)
|
||||
{}
|
||||
|
||||
|
||||
@ -1501,7 +1501,7 @@ bool TPrint_section::edit(const char* title)
|
||||
{
|
||||
i = (word)a.selected();
|
||||
|
||||
if (_msk == NULL && (k == K_ENTER || k == K_INS))
|
||||
if (_msk == NULL && (k == K_ENTER || k == K_INS || k == K_CTRL + 'N'))
|
||||
{
|
||||
_msk = new TMask("ba2100f");
|
||||
|
||||
@ -1522,18 +1522,18 @@ bool TPrint_section::edit(const char* title)
|
||||
}
|
||||
|
||||
TForm_string dummy(this);
|
||||
TForm_item& it = field(i);
|
||||
|
||||
switch(k)
|
||||
{
|
||||
case K_ENTER:
|
||||
_msk->set_mode(MODE_MOD);
|
||||
if (it.edit(*_msk))
|
||||
if (field(i).edit(*_msk))
|
||||
{
|
||||
it.print_on(a.row(i));
|
||||
field(i).print_on(a.row(i));
|
||||
dirty = TRUE;
|
||||
}
|
||||
break;
|
||||
case K_CTRL + 'N':
|
||||
case K_INS:
|
||||
_msk->set_mode(MODE_INS);
|
||||
if (dummy.edit(*_msk))
|
||||
|
Loading…
x
Reference in New Issue
Block a user