[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] Highwire coding question
> So would it help to search the original string rather than try to copy
> a piece of it ?
Yes
Is not perfect, but this part work for ctrl+cursor
right.-------------------------------cut-------------------------------
WORD i;
WCHAR ** text = input->TextArray;
WCHAR * beg = text[ form->TextCursrY ] + form->TextCursrX;
i = 0;
while (1)
{
if ( *beg == ' ' )
{
scrl = ++i;
break;
}
else if (*beg == '\n' )
{ /* this work not very good. */
scrl = -form->TextCursrX;
lift = +1;
line = -2;
}
else if ( *beg == '\0' )
{
word = NULL;
break;
}
beg++;
i++;
}
-------------------------------cut-------------------------------
Gerhard