Chart Editor and Theme Tab

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
spietrek
Newbie
Newbie
Posts: 10
Joined: Wed Sep 22, 2004 4:00 am

Chart Editor and Theme Tab

Post by spietrek » Thu Apr 14, 2005 10:36 pm

I would like to display the chart editor with just Tools (Graph Tools menu option). I can set the options to only display Tools but then the Themes tab is still visible. I want to allow themes for my Graph Settings dialog so I can't remove the ability to change themes. What do I need to do to avoid displaying the theme tab in the chart editor in one case but not in another case.

Don't ask about why users want two separate dialogs - which are basically the same thing - it's a long.... story.

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Apr 14, 2005 11:46 pm

Hi,

we've added a new method in the TeeThemeEditor.pas unit to allow to hide the tab via code :
procedure ShowThemesEditor(Value:Boolean);
which will be available for the next maintenance release.
If you're source code customer you can add it manually and rebuild the sources. :

Code: Select all

procedure ShowThemesEditor(Value:Boolean);
begin
  if Value then
  begin
    if Not Assigned(TeeThemeSelectorHook) then
    begin
       InstallHook;
       TeeThemeSelectorHook:=ChartThemeSelector;
    end;
  end
  else begin
     TeeThemeSelectorHook := nil;
     RemoveHook;
  end;
end;

spietrek
Newbie
Newbie
Posts: 10
Joined: Wed Sep 22, 2004 4:00 am

Post by spietrek » Fri Apr 15, 2005 11:24 am

Thanks, it worked great!

Post Reply