TextArea inserts
Posted
#1
(In Topic #1408)
Regular

Given a TextArea, I want to insert some text at the beginning of the current line or at the beginning of the text if there is only one line. This is regardless of whether the text is being wrapped at this point.
I have no idea.
b
Posted
Guru

but instead just use normal String commands like RInstr() on the text.
like this….
Code (gambas)
- '' Insert "NEW: " to the start of the current line
- InsertAtSOL(TextArea1, "NEW: ")
- '' Insert provided Text at the textarea Start of Line (SOL)
- Area.Pos = iPos ' move cursor
- Area.Insert(Text) ' insert text
- Area.SetFocus
Posted
Guru

Seems like a bug to me.
Terminal does not act like that and home key goes to start of the command no matter how many lines its using.
Posted
Regular

And yes I reckon that is a bug but it may be a GUI thing.
b
1 guest and 0 members have just viewed this.


