Unable to change font in BTextView

Be sure, i’ve been through with BTextView… With SetFontAndColor and all the other things.
IT IS NOT WORKING… or maybe i am to dumb for that. Yep, i think that it is.
You go through the text of BTextView and setting this and this… Works perfect.
BUT… you are typing in that View… and you wanna see the changes while youre typing… all good…
been there, done that.
BUT when you are deleting some characters… thats where problems start.

Is there any Screenshot of your Editor?

Are you kidding me? It is just able to load and save files and to put the cursor where i want it :wink:
But hey… here is my code: https://github.com/Samson666/HaIDE

Hey thats much more as I can do with cpp :wink:

LOL yes, maybe. I dont know your c++ skills :smile:
And… the coolest thing is… the cursor blinks :wink:

1 Like

If you have fun to visite the begeistert this year, you can teach me, so i have 1% cpp knowledge after it :wink:

actually i visited his site… or what do u mean?

He means that he wishes that you could go to the Begeistert event itself to teach him there :stuck_out_tongue:

Ahh… i think i realized that he is not the newbe :slight_smile:

And where and when is the Begeistert event?

But we have no free bed places any more, but as dayguest are welcome

Jo, für die Hamburger Jungs ist das bestimmte totale Klasse :smile:
Von Stuttgart aus stehen so ca. 1000km dazwischen. Leider,

5h Zug fährt für 50€ hin und zurück oder 60€ pro Flug :slight_smile:

Ja genau. Und ich bin der Osterhase. Für 50€ macht dir der Schaffner nen Knopt ins Ohr.
Den Flug glaub ich dir schon eher. Wobei… innerdeutsch… vergiss es. Da fliegst billiger auf die Kanaren :slight_smile:


Ok got me :blush:

Until you start running into corner cases. There is a reason Scintilla has as much code as it does. Anyway, that’s your choice, have fun :slight_smile:

Pretending that BTextView does net work sounds strange. StyledEdit provided with Haiku is a good sample application and it does manage using BTextView.

1 Like

Its all good with BTextView.
And it works fine. When it comes to tag some words, like for example #include, with a color then its ok too. Works fine.
But when you DELETE some characters in the BTextView text the problem begins.
You could run through the whole text and SetFontAndColor. But its so timeconsumption that its just not usable.
BTextView cant tell you where your cursor is (ok the line, but not the position).
BTextView is unable to get sate of character where cursor is. and so on.
So, you see. I tried all option i had. But none them are really usefull.
And sorry, but StyleEdit is NOT a programing editor.

I love difficutlies. While there is a way to resolve them in a reasonalbe time