Im trying to make a text field with more lines
why doesnt this work? well actually it works but not how i want it to...
it only works once. Only when i clicked the button to insert the text. i can go one line back not more..when i press enter/return after going back to previous line the inkey is set off.
Code:
starter next_line
{
while(1)
{
if(key_lastpressed == 28 && line_num < 14) //28 = return,enter
{
beep;
inkey_active = off;
line_num += 1;
wait(1);
inkey(test_txt.string[line_num]);
}
wait(1);
}
}
starter vorige_regel
{
while(1)
{
if(key_lastpressed == 14 && str_cmpi(test_txt.string[line_num],"") == 1 && line_num > 0) //14 = bksp
{
beep;
inkey_active = off;
line_num -= 1;
wait(1);
inkey(test_txt.string[line_num]);
key_lastpressed = 15;
}
wait(1);
}
}