Hi Walter,
walter0316 wrote:
That is not working anymore. What can I do?
That was changed in the earliest v9 (aka v201x) development stage. Now you can do this:
Code: Select all
// Show 3D Gallery:
with TFormTee3D.Create(Self) do
try
ThePanel:=Chart1;
Align:=alNone;
BorderStyle:=TeeBorderStyle; // bsDialog
Position:=poScreenCenter;
PageControl1.ActivePage:=TabViews;
PageControl1Change(PageControl1);
ResetTab3D:=False;
ShowModal;
finally
Free;
end;
walter0316 wrote:
Secondly, I could change the source in the old Library that there is a STyle psInvRainbow.
In the new Lib there is also no Inverse Rainbow Style. How can I add it again?
I can not find psInvRainbow in our sources history, the only mention of it I find is from a customer
at this forum as a custom palette suggestion. As suggested there you can create as a custom palette.
psRainbow palette being:
Code: Select all
RainbowPalette:Array[0..24] of TColor=
(
$000099,
$0000C3,
$0000EE,
$001AFF,
$0046FF,
$0073FF,
$009FFF,
$00CBFF,
$00F7FF,
$08F4E3,
$11E7C3,
$1BDAA3,
$25CD83,
$2EC063,
$38B342,
$42A622,
$4B9A02,
$6A870C,
$8A751A,
$AA6328,
$CB5036,
$EB3E44,
$FF2A61,
$FF1596,
$FF00CC
);
and code creating psRainbow below, will probably help you creating it.
Code: Select all
procedure SetRainbowPalette;
// Special case, internal Rainbow palette is in VCL format:
{$IFDEF FMX}
function InvertColor(const AColor:TColor):TColor;
begin
with TRGBA(result) do
begin
Red:=TRGBA(AColor).Blue;
Green:=TRGBA(AColor).Green;
Blue:=TRGBA(AColor).Red;
// FMX opacity is inverted from VCL:
if TRGBA(AColor).Alpha=0 then
Alpha:=255;
end;
end;
{$ENDIF}
var t : Integer;
begin
if Assigned(ParentChart) then
begin
// Wish: Instead of using "Length(RainbowPalette)" here use: NumSteps.
//
// ie: Needs to calculate "middle" colors in between
// if the NumSteps is bigger than 25.
SetLength(ParentChart.ColorPalette,Length(RainbowPalette));
for t:=0 to High(RainbowPalette) do
ParentChart.ColorPalette[t]:={$IFDEF FMX}InvertColor{$ENDIF}(RainbowPalette[t]);
// Default:
for t:=0 to NumSteps-1 do
DoAddPalette(tmpMin+ScaleValue*t,ParentChart.GetDefaultColor(t));
ParentChart.ColorPalette:=nil; // should be OLD palette !!
end;
end;
walter0316 wrote:
Could you add this Style-feature to the next update?
I added it to the wish-list (
ID1259) to be considered for inclusion in future releases.