Textarea implementation Easy ways?

Posted By: EpsiloN

Textarea implementation Easy ways? - 10/05/15 12:06

Another roadblock...

Can anyone suggest an easy way to implement a text area?

The only thing I can think of is using a text with a number of strings and to change "lines" when the user reaches the end of a string or deletes the start of a line. But all this sounds very crude and inefficient.

Also, any way to paste text from the clipboard in a string with CTRL+V? Havent tested, but from what I know from the old days, it never worked grin

Thanks.
Posted By: Anonymous

Re: Textarea implementation Easy ways? - 10/06/15 01:14

Could you use this and then an engine check -- if(ctrl || key_v) do stuff from this post... http://cboard.cprogramming.com/windows-programming/103976-get-clipboard-text-string.html
Of course you do not want to dump the clipboard into printf but instead a string, correct?
© 2024 lite-C Forums