Page 1 of 1

Chat with speech balloons

Posted: Mon Dec 04, 2017 3:07 pm
by Sergey Tkachenko
A new demo is included in TRichView 17.2.

It is in <TRichView Dir>\TRichView\Demos\Assorted\CustomDraw\Callouts\
This demo uses a custom drawing event to draw speech balloons. Each message is a table having 1 row and 2 columns.
balloons.png
balloons.png (73.91 KiB) Viewed 19289 times
Avatars are "shared images" - only one copy of each avatar is created.
(Of course, this is not a real chat application; this demo just shows visual possibilities)

Other chat-related demo projects:
https://www.trichview.com/forums/viewtopic.php?f=3&t=63 (chat codes, URLS)
https://www.trichview.com/forums/viewto ... f=3&t=3160 (contact list)

Re: Chat with speech balloons

Posted: Tue Dec 05, 2017 9:46 am
by Sergey Tkachenko
And here is a modified version of this demo:
callouts-ex.zip
(104.81 KiB) Downloaded 1398 times
It draws speech bubbles around the message text.
speech-bubbles-ex.png
speech-bubbles-ex.png (85.13 KiB) Viewed 19274 times
Unlike the original project, this demo uses some undocumented methods.