Valhalla Legends Forums Archive | Spht's Forum | Hey Spht...

AuthorMessageTime
Topaz
I noticed that SphtBot prevents new text being added to the richtextbox from resetting the start point to the bottom. What API did you use to do that?
April 22, 2006, 9:15 AM
JoeTheOdd
None, I reckon. He probably took time out of his day to learn some RTF and modifed RichTextBox.TextRTF instead of using SelStart, SelColor, and SelText. By not chaning SelStart.. he doesn't change the SelStart.
April 22, 2006, 3:53 PM
UserLoser
[quote author=J link=topic=14819.msg151041#msg151041 date=1145721185]
None, I reckon. He probably took time out of his day to learn some RTF and modifed RichTextBox.TextRTF instead of using SelStart, SelColor, and SelText. By not chaning SelStart.. he doesn't change the SelStart.
[/quote]

No, I'm pretty sure Spht uses SendMessageA and not the properties that are available on the RichTextBox control.  I used to do this my self also, it's much more complex then you probably think it is.
April 22, 2006, 4:09 PM
Spht
It utilizes the Richedit API.
April 22, 2006, 7:22 PM
Topaz
[quote author=Spht link=topic=14819.msg151048#msg151048 date=1145733735]
It utilizes the Richedit API.
[/quote]

Which ones in particular?

Hm... I think I found them


SendMessage(rtbChat(0).hwnd, WM_SETREDRAW, 0, intPointer)

SendMessage(rtbChat(0).hwnd, EM_GETEVENTMASK, 0, intPointer)
April 22, 2006, 9:40 PM
UserLoser
[quote author=Topaz link=topic=14819.msg151055#msg151055 date=1145742016]
[quote author=Spht link=topic=14819.msg151048#msg151048 date=1145733735]
It utilizes the Richedit API.
[/quote]

Which ones in particular?

Hm... I think I found them


SendMessage(rtbChat(0).hwnd, WM_SETREDRAW, 0, intPointer)

SendMessage(rtbChat(0).hwnd, EM_GETEVENTMASK, 0, intPointer)
[/quote]

A lot more is involved besides that :P
April 23, 2006, 3:05 PM
Topaz
[quote author=UserLoser link=topic=14819.msg151104#msg151104 date=1145804707]
[quote author=Topaz link=topic=14819.msg151055#msg151055 date=1145742016]
[quote author=Spht link=topic=14819.msg151048#msg151048 date=1145733735]
It utilizes the Richedit API.
[/quote]

Which ones in particular?

Hm... I think I found them


SendMessage(rtbChat(0).hwnd, WM_SETREDRAW, 0, intPointer)

SendMessage(rtbChat(0).hwnd, EM_GETEVENTMASK, 0, intPointer)
[/quote]

A lot more is involved besides that :P
[/quote]

Two more lines to lock events, but those calls are doing what I need :-p
April 23, 2006, 10:17 PM
Spht
WM_SETREDRAW can be useful in preventing the Richedit from redrawing redundantly when you do multiple things together like append text, remove text, or change scroll positions.

I don't use EM_SETEVENTMASK.
April 23, 2006, 11:09 PM
Topaz
[quote author=Spht link=topic=14819.msg151141#msg151141 date=1145833750]
WM_SETREDRAW can be useful in preventing the Richedit from redrawing redundantly when you do multiple things together like append text, remove text, or change scroll positions.

I don't use EM_SETEVENTMASK.
[/quote]

Hum... which message do you use? I'm losing user talk thats sent at about the same time the top line is cleared... not the result I desire :-P
April 27, 2006, 7:18 AM

Search