Preset RVAction Dialog Properties

General TRichView support forum. Please post your questions here
Post Reply
standay
Posts: 274
Joined: Fri Jun 18, 2021 3:07 pm

Preset RVAction Dialog Properties

Post by standay »

Hi Sergey,

Is there a way to set the RVEParagraphrvActionParaBorder properties before I show the dialog? I'd like to "preset" the background color, text margins and padding values right before opening the dialog.

Thanks

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

Re: Preset RVAction Dialog Properties

Post by Sergey Tkachenko »

Sorry, the current version of RichViewActions does not allow it.
TrvActionParaBorder can work in two modes:
1. If its property UserInterface = True (default), the action assigns attributes from selected text to the dialog, {*} shows the dialog, applies changes made in dialog.
2. If UserInterface = False, you assign properties of the action, and the action applies them, without showing a dialog,

If you want, I can add an event that will happen in time marked as in the text {*} above.
standay
Posts: 274
Joined: Fri Jun 18, 2021 3:07 pm

Re: Preset RVAction Dialog Properties

Post by standay »

Hi Sergey,

Mode 1: This is how I'm using it now. I set the para properties in my rve first, then I show the dialog which I can use to make any additional changes.

Mode 2: This would not be what I'd want. I can set the properties needed in code now and don't need to do it using a hidden UI action.

I'm not quite sure what you mean by this: {*} Is that all the code in the rvaction that runs between the action assigning the selected text properties from my rve and when the action's dialog form is actually shown?

As to an event that would "happen in time marked as in the text {*} above," if my assumption as to what {*} means is correct and if you were planning to do that anyway, that would be OK, otherwise don't bother with it. I can use mode 1 instead.

Thanks again Sergey

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

Re: Preset RVAction Dialog Properties

Post by Sergey Tkachenko »

I mean, the new event can be called just before displaying this dialog. In this event, you will be able to assign properties of the action, and they will be used as initial values in the dialog,
standay
Posts: 274
Joined: Fri Jun 18, 2021 3:07 pm

Re: Preset RVAction Dialog Properties

Post by standay »

OK, thanks for clarification. Yes, that would be great if you have time to do it.

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

Re: Preset RVAction Dialog Properties

Post by Sergey Tkachenko »

Most probably the update will be released closer to the end of July.
My current plans:
- this week: to release RVMedia update
- next week: vacation :)
- then I'll continue working on TRichView and RichViewActions.
standay
Posts: 274
Joined: Fri Jun 18, 2021 3:07 pm

Re: Preset RVAction Dialog Properties

Post by standay »

Sounds good.

Thanks Sergey

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

Re: Preset RVAction Dialog Properties

Post by Sergey Tkachenko »

The event will be named OnShowingDialog, and will be added to TrvActionFontEx, TrvActionParagraph, and TrvActionParaBorder.
standay
Posts: 274
Joined: Fri Jun 18, 2021 3:07 pm

Re: Preset RVAction Dialog Properties

Post by standay »

Thanks Sergey. I'll try it as soon as it's available.

Stan
standay
Posts: 274
Joined: Fri Jun 18, 2021 3:07 pm

Re: Preset RVAction Dialog Properties

Post by standay »

Hi Sergey,

I installed 21.4 but not seeing an OnShowingDialog event in TrvActionFontEx, TrvActionParagraph, and TrvActionParaBorder.

Will that be coming later?

Thanks Sergey.

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

Re: Preset RVAction Dialog Properties

Post by Sergey Tkachenko »

Sorry, by a mistake, RichViewActions were not updated in the new setups.
I just uploaded fixed versions (without changing version number), please re-download.
standay
Posts: 274
Joined: Fri Jun 18, 2021 3:07 pm

Re: Preset RVAction Dialog Properties

Post by standay »

Thanks Sergey, I'll do that now.

Edit: OK, yes, they are updated now! Thanks. I tried the OnShowingDialog event in a quick test and yes, that seems to work just as I wanted it to. I'll work on implementing that and let you know how that goes.

Stan
Post Reply