Search found 13 matches

by KFC123
Wed Nov 08, 2006 2:45 pm
Forum: Support
Topic: HELP margin and image insertion
Replies: 3
Views: 12839

Sorry for the misleading question. Anyway, just forget the first question. Would you please give me some idea about the rest questions?

I would like to show several imaged buttons on the richview (not richviewedit). I try to use richview.InsertControl to so do, but seems not ok. Would you please ...
by KFC123
Wed Nov 08, 2006 10:22 am
Forum: Support
Topic: HELP margin and image insertion
Replies: 3
Views: 12839

HELP margin and image insertion

Hi there,
I am going to insert text on the left margin at specified row. I have searched the demo and find the following way to do that

procedure TForm1.RVStyle1DrawCheckpoint(Sender: TRVStyle; Canvas: TCanvas;
X, Y, ItemNo, XShift: Integer; RaiseEvent: Boolean; Control: TControl;
var DoDefault ...
by KFC123
Mon Aug 21, 2006 5:24 am
Forum: Support
Topic: support fade in and fade out?
Replies: 5
Views: 16760

If the background is a plain color (for example, white), you can make text color whiter and whiter, until it becomes white and completely disappears.

Thanks. I am not quite familiar with controling color, here is my code of handling TEXT in green on black background (change the brightness from ...
by KFC123
Sat Aug 19, 2006 4:03 am
Forum: Support
Topic: support fade in and fade out?
Replies: 5
Views: 16760

Sorry, no.
But you can create image of TRichView document, place it on top of TRichView, and apply fade-in/fade-out effect to this image.
I created a demo: http://www.trichview.com/support/files/fade.zip

That's great.


But if you need to apply this effect to text only (not to pictures, tables ...
by KFC123
Fri Aug 18, 2006 1:25 pm
Forum: Support
Topic: support fade in and fade out?
Replies: 5
Views: 16760

Wow, it's really great! Thanks a lot.
by KFC123
Fri Aug 18, 2006 6:53 am
Forum: Support
Topic: support fade in and fade out?
Replies: 5
Views: 16760

support fade in and fade out?

Does trichview support a fade-in & fade-out text?

thx in advance
by KFC123
Thu Aug 17, 2006 11:50 am
Forum: Support
Topic: help mouse click/rightclick
Replies: 3
Views: 14175

Sergey Tkachenko wrote:Use OnRVMouseUp
But OnRVxxx only work on the text , I want an event work on everywhere (including blank area) of richview
by KFC123
Thu Aug 17, 2006 4:41 am
Forum: Support
Topic: help mouse click/rightclick
Replies: 3
Views: 14175

help mouse click/rightclick

Hi there,
I am using TRichView. I try to catch mouse click event when click on anywhere of TRichView. Using OnClick is fine for my case, however, to implement OnClick will cover selection operation. When using OnRVRightclick instead, the problem is solved but rightclick event can only triggered ...
by KFC123
Mon Apr 24, 2006 4:33 pm
Forum: Support
Topic: help replacing a character
Replies: 7
Views: 22967

One more suggestion: change ApplyTextStyle(1) to CurTextStyleNo := 1;
Yes, it does cure the problem a little bit more.

I try to use TRichEdit instead, the problem even worse. However, when I type in TRichedit, only the text on the same line of the current charater is flickering. While I use ...
by KFC123
Mon Apr 24, 2006 3:18 am
Forum: Support
Topic: help replacing a character
Replies: 7
Views: 22967

Sergey Tkachenko wrote:Try removing call of rve.Invalidate. It's not needed, and usually it's not required to redraw the whole window.
Thanks for your reply. Yes, it is little better after removing the invlidate, however, the problem still no good. When I type, the text after the current character is shakeing seriously.
by KFC123
Sun Apr 23, 2006 7:10 am
Forum: Support
Topic: help replacing a character
Replies: 7
Views: 22967

Thanks, it works. However, I found it is very flickering while typing. Here is my code

procedure TTestForm.SEKeyPress(Sender: TObject; var Key: Char);
var
aword :string;
rve: TCustomRichViewEdit;
ItemNo, Offs: Integer;
begin

if key<>#13 then
begin
if (key>#30) then
begin
try
sent ...
by KFC123
Sun Apr 23, 2006 6:30 am
Forum: Support
Topic: About deleting content and getting the current charater
Replies: 1
Views: 9489

About deleting content and getting the current charater

1) I use the following functions to delete everything in the editor

RichEditor1.selectall;
RichEditor1.deleteselection;

Is any better way to do that?

2) How can I control the cursor and change its position, like make it go to the first place of the content?

3) How can I get the current ...
by KFC123
Fri Apr 21, 2006 7:36 am
Forum: Support
Topic: help replacing a character
Replies: 7
Views: 22967

help replacing a character

Hi there,
I am writing a copybook-like editor with richview

// First of all, I build two text style: one for background text in gray and
// one for normal text (typing) in green

// then, I add the background text which apply the textstyle(0)
CopyBook.InsertText('This is a test text', true ...