Chat with speech balloons

Demos, code samples. Only questions related to the existing topics are allowed here.
Post Reply
Sergey Tkachenko
Site Admin
Posts: 14034
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Chat with speech balloons

Post by Sergey Tkachenko » Mon Dec 04, 2017 3:07 pm

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 1485 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)

Sergey Tkachenko
Site Admin
Posts: 14034
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Chat with speech balloons

Post by Sergey Tkachenko » Tue Dec 05, 2017 9:46 am

And here is a modified version of this demo:
callouts-ex.zip
(104.81 KiB) Downloaded 126 times
It draws speech bubbles around the message text.
speech-bubbles-ex.png
speech-bubbles-ex.png (85.13 KiB) Viewed 1470 times
Unlike the original project, this demo uses some undocumented methods.

Post Reply