Ruler - taDecimalAlign

General TRichView support forum. Please post your questions here
Post Reply
j&b
Posts: 184
Joined: Mon Sep 05, 2005 1:35 pm

Ruler - taDecimalAlign

Post by j&b »

Hello,


I want to use rvRuler1.Tabs[FTabNr].Align := taDecimalAlign
(FTabNr look at RVRuler1RulerItemSelec).

{
I have set toAdvancedTabs true in TabSettings.Options.

procedure TForm1.RVRuler1RulerItemSelect(Sender: TObject; X: Integer);
var i: Integer;
begin
FTabNr := -1;
for i := 0 to rvRuler1.Tabs.Count - 1 do
if NearBy(rvRuler1.Tabs.Left, X, 4) then FTabNr := i;
end;
}



I expected that decimal-numbers are written in this way (dot under dot):
1.23 //I have tried 1,23 too
12.34
123.54

But in rve-memo decimal-numbers are written in this way (taLeftAlign):
1.23
12.34
123.54


What's wrong ?


Best regards

Jürgen


PS: In Peter's Demo 'unit uSimpleDemo' taDecimalAlign also doesn't work. taDecimalAlign changes to taLeftAlign.
Sergey Tkachenko
Site Admin
Posts: 17530
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

This feature is supported by the ruler, but it is not supported by TRichViewEdit.
Sorry, it will not work.
Pieter Zijlstra
Posts: 42
Joined: Sat Oct 08, 2005 3:56 pm
Location: The Netherlands
Contact:

Post by Pieter Zijlstra »

PS: In Peter's Demo 'unit uSimpleDemo' taDecimalAlign also doesn't work. taDecimalAlign changes to taLeftAlign.
That demo is using Delphi's (read Windows) standard TRichEdit v1.0 this one does not support it and that's why it is off by default.
Maybe it would have been better to not show this option in the OI ;-)
haidomingo
Posts: 16
Joined: Tue Nov 10, 2009 7:27 pm

Post by haidomingo »

Sergey Tkachenko wrote:This feature is supported by the ruler, but it is not supported by TRichViewEdit.
Sorry, it will not work.
This feature is supported in the new version? (TRichVieEdit)
Sergey Tkachenko
Site Admin
Posts: 17530
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

No, and not planned for near future, sorry.
Post Reply