Page 1 of 1

Chart Editor and Theme Tab

Posted: Thu Apr 14, 2005 10:36 pm
by 9339266
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.

Posted: Thu Apr 14, 2005 11:46 pm
by Pep
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;

Posted: Fri Apr 15, 2005 11:24 am
by 9339266
Thanks, it worked great!