Page 1 of 1

Ruler - taDecimalAlign

Posted: Tue Dec 18, 2007 6:12 am
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.

Posted: Wed Dec 19, 2007 8:54 am
by Sergey Tkachenko
This feature is supported by the ruler, but it is not supported by TRichViewEdit.
Sorry, it will not work.

Posted: Wed Dec 19, 2007 9:45 pm
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 ;-)

Posted: Mon Nov 30, 2009 5:49 pm
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)

Posted: Tue Dec 01, 2009 4:03 pm
by Sergey Tkachenko
No, and not planned for near future, sorry.