freeware version

General TRichView support forum. Please post your questions here
Post Reply
gaston
Posts: 3
Joined: Tue Apr 05, 2016 11:03 pm

freeware version

Post by gaston »

Hello Sergey, I understand this forum is dedicated to support paid versions, so, before posting a question about freeware version (0.5.2), I'm asking for your permission. Is there any other channel for this eventually? Thanks in advance!
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

You can post questions in this forum
gaston
Posts: 3
Joined: Tue Apr 05, 2016 11:03 pm

Post by gaston »

great! I´ve managed to succesfully install richview 0.5.2 in d2007. My goal is to code a modest chat application which supports "clickable" images. I found this can be accomplished either by AddHotSpot... or by AddControl... My problem is, if I try addHotSpot, images get "granulated". I've replaced the hotspot image in the included demo with your logo, and it shows like this:
Image

If I try the second approach (which I'd prefer btw), I've found that controls "disappear" every time I perform a formattail. working with the same demo, if I run this code

Code: Select all

richview1.AddTextFromNewLine('TEXT', rvsheading);
richview1.Formattail;
richview1.Refresh;
the embedded button dissapears. This works fine if I perform a Format instead.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I tried to compile v0.5.2 in D2007.
The following line was not compiled:

Code: Select all

     TImageList(li.gr).DrawingStyle := dsNormal;
How did you changed it?
It should be

Code: Select all

     TImageList(li.gr).DrawingStyle := ImgList.dsNormal;
gaston
Posts: 3
Joined: Tue Apr 05, 2016 11:03 pm

Post by gaston »

You're absolutely right! that was my big mistake, I had changed it this way:
TImageList(li.gr).DrawingStyle := ImgList.TDrawingStyle(dsNormal)
I corrected it as you suggested, and now it works smoothly! (the images shows that effect only when clicked, which I assume is its normal behaviour as they've a "link" style applied)

A huge THANK YOU Sergey!. If you have the time, could you please check the issue with the disspearing inserted controls after a formattail? If not, I'll understand. Once again, thanks for your time and disposition!
Post Reply