Toggle navigation
ReportBuilder Support Forums
Categories
Discussions
Activity
Sign In
Home
›
End User
ReportBuilder 22.06 now available including Delphi 12.2 support!
New Blog Posts: Merging Reports -
Part 1
and
Part 2
How to hide TableGrid and GMap tool buttons?
rbuser
January 2016
edited January 2016
in
End User
Hello,
how can I hide the TableGrid and GMap tool buttons? Both of them are not
in the Designer.ShowComponents set as far as I see...
Best regards,
Mark
Comments
rbuser
January 2016
edited January 2016
Am 13.01.2016 um 17:57 schrieb Mark Stein:
*bump* as it seems to got missed.
nardmoseley
January 2016
edited January 2016
Hi Mark,
For RB 17.01, I'll add Designer.ShowComponents support for TableGrid and
GMap.
Here are two options for removing them via code
1. This code will unregister the components completely from RB.
uses
ppClass,
ppEndUsr,
ppTableGrid,
ppGMap;
procedure TForm1.Button1Click(Sender: TObject);
begin
ppUnRegisterComponent(TppTableGrid);
ppUnRegisterComponent(TppGMap);
ppDesigner1.ShowModal;
end;
2. This code will hide them from the component palette
procedure TForm1.Button2Click(Sender: TObject);
var
lComponentClasses: TStrings;
liIndex: Integer;
begin
lComponentClasses := TStringList.Create;
try
lComponentClasses.Assign(ppDesigner1.Form.ComponentClasses);
liIndex := lComponentClasses.IndexOf('TppTableGrid');
lComponentClasses.Delete(liIndex);
liIndex := lComponentClasses.IndexOf('TppGMap');
lComponentClasses.Delete(liIndex);
ppDesigner1.Form.ComponentClasses := lComponentClasses;
finally
lComponentClasses.Free;
end;
ppDesigner1.ShowModal;
end;
Best regards,
-
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
rbuser
February 2016
edited February 2016
I preferred the first way as it it much more easy to mainatin when
updating to a new version!
Nard Moseley (Digital Metaphors) drückte sich sehr genau aus :
--
Hint: We altered the sources!Hint: We altered the sources!
nardmoseley
February 2016
edited February 2016
Hi Carsten,
Now that we released RB 17.01, TppDesigner.ShowComponents property can be
used to hide the TableGrid, GMap
Best regards,
-
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
rbuser
February 2016
edited February 2016
What about TppCrossTabPaginationType?
Am 22.02.2016, Nard Moseley (Digital Metaphors) vermutete :
--
Hint: We altered the sources!Hint: We altered the sources!
nardmoseley
February 2016
edited February 2016
Hi Carsten,
I don't understand the question/comment. Please provide details.
Best regards,
-
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
rbuser
February 2016
edited February 2016
Hi Nard,
scGMap is responsible for TppGMap. Which sc??? is responsible for
TppCrossTabPaginationType.
Cheers Carsten
Nard Moseley (Digital Metaphors) stellte die Frage :
--
Hint: We altered the sources!Hint: We altered the sources!
nardmoseley
February 2016
edited February 2016
Hi Carsten,
This thread is focused on TppDesigner ShowComponnets.
Check out the RBuilder help topic for TppDesigner ShowComponents for details
on its use.
Best regards,
-
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
This discussion has been closed.
Comments
*bump* as it seems to got missed.
For RB 17.01, I'll add Designer.ShowComponents support for TableGrid and
GMap.
Here are two options for removing them via code
1. This code will unregister the components completely from RB.
uses
ppClass,
ppEndUsr,
ppTableGrid,
ppGMap;
procedure TForm1.Button1Click(Sender: TObject);
begin
ppUnRegisterComponent(TppTableGrid);
ppUnRegisterComponent(TppGMap);
ppDesigner1.ShowModal;
end;
2. This code will hide them from the component palette
procedure TForm1.Button2Click(Sender: TObject);
var
lComponentClasses: TStrings;
liIndex: Integer;
begin
lComponentClasses := TStringList.Create;
try
lComponentClasses.Assign(ppDesigner1.Form.ComponentClasses);
liIndex := lComponentClasses.IndexOf('TppTableGrid');
lComponentClasses.Delete(liIndex);
liIndex := lComponentClasses.IndexOf('TppGMap');
lComponentClasses.Delete(liIndex);
ppDesigner1.Form.ComponentClasses := lComponentClasses;
finally
lComponentClasses.Free;
end;
ppDesigner1.ShowModal;
end;
Best regards,
-
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
updating to a new version!
Nard Moseley (Digital Metaphors) drückte sich sehr genau aus :
--
Hint: We altered the sources!Hint: We altered the sources!
Now that we released RB 17.01, TppDesigner.ShowComponents property can be
used to hide the TableGrid, GMap
Best regards,
-
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Am 22.02.2016, Nard Moseley (Digital Metaphors) vermutete :
--
Hint: We altered the sources!Hint: We altered the sources!
I don't understand the question/comment. Please provide details.
Best regards,
-
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
scGMap is responsible for TppGMap. Which sc??? is responsible for
TppCrossTabPaginationType.
Cheers Carsten
Nard Moseley (Digital Metaphors) stellte die Frage :
--
Hint: We altered the sources!Hint: We altered the sources!
This thread is focused on TppDesigner ShowComponnets.
Check out the RBuilder help topic for TppDesigner ShowComponents for details
on its use.
Best regards,
-
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com