Page 1 of 1

default table style

Posted: Sun Oct 27, 2019 3:13 pm
by adamrich
Hello,

Is there a way to have default table style (like bother width, cell width, color so on)?

Thank you

Re: default table style

Posted: Sun Oct 27, 2019 8:17 pm
by Sergey Tkachenko
Do you mean RichViewActions, the action TrvActionInsertTable? It has all properties of table objects, like BorderWidth, BorderColor, and so on. So you can assign them.
Additionally, in the table properties dialog, the user can check "Default" checkbox at the bottom left corner of the dialog, and these properties will be assigned to new tables (because these properties will be assigned to TrvActionInsertTable action).

Re: default table style

Posted: Mon Oct 28, 2019 4:51 pm
by adamrich
sorry, yes that is what I meant RichViewActions table.
Is that a component I need to register ? or just create TrvActionInsertTable table and assign all default on form create ?

Thank you so much

Re: default table style

Posted: Mon Oct 28, 2019 5:20 pm
by Sergey Tkachenko
Actions are added in TActionList component. If you created your application basing on our ActionTest demos, you already have ActionList1: TActionList component, containing many actions, including TrvActionInsertTable. You can assign its properties at designtime, in the Object Inspector.

Re: default table style

Posted: Tue Oct 29, 2019 1:37 pm
by adamrich
Thank you so much for your time,
I was able to find it under
rvActionsResource.rvActionInsertTable1

Thanks again

Re: default table style

Posted: Tue Oct 29, 2019 1:51 pm
by Sergey Tkachenko
rvActionsResource (from dmActions.pas) is used in our ActionTest demo for Delphi 7-2007.
ActionTest for newer versions of Delphi have TActionList (and actions) directly on the main form.