default table style

General TRichView support forum. Please post your questions here
Post Reply
adamrich
Posts: 35
Joined: Sun Feb 19, 2006 1:55 pm

default table style

Post by adamrich » Sun Oct 27, 2019 3:13 pm

Hello,

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

Thank you

Sergey Tkachenko
Site Admin
Posts: 14708
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: default table style

Post by Sergey Tkachenko » Sun Oct 27, 2019 8:17 pm

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).

adamrich
Posts: 35
Joined: Sun Feb 19, 2006 1:55 pm

Re: default table style

Post by adamrich » Mon Oct 28, 2019 4:51 pm

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

Sergey Tkachenko
Site Admin
Posts: 14708
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: default table style

Post by Sergey Tkachenko » Mon Oct 28, 2019 5:20 pm

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.

adamrich
Posts: 35
Joined: Sun Feb 19, 2006 1:55 pm

Re: default table style

Post by adamrich » Tue Oct 29, 2019 1:37 pm

Thank you so much for your time,
I was able to find it under
rvActionsResource.rvActionInsertTable1

Thanks again

Sergey Tkachenko
Site Admin
Posts: 14708
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: default table style

Post by Sergey Tkachenko » Tue Oct 29, 2019 1:51 pm

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.

Post Reply