Chat with speech balloons

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

Chat with speech balloons

Post 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 16824 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)
Sergey Tkachenko
Site Admin
Posts: 16237
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Chat with speech balloons

Post by Sergey Tkachenko »

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