Page 1 of 1

Preset RVAction Dialog Properties

Posted: Wed Jul 05, 2023 11:24 am
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

Re: Preset RVAction Dialog Properties

Posted: Wed Jul 05, 2023 12:47 pm
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.

Re: Preset RVAction Dialog Properties

Posted: Wed Jul 05, 2023 2:31 pm
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

Re: Preset RVAction Dialog Properties

Posted: Wed Jul 05, 2023 8:15 pm
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,

Re: Preset RVAction Dialog Properties

Posted: Wed Jul 05, 2023 8:27 pm
by standay
OK, thanks for clarification. Yes, that would be great if you have time to do it.

Stan

Re: Preset RVAction Dialog Properties

Posted: Wed Jul 05, 2023 8:40 pm
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.

Re: Preset RVAction Dialog Properties

Posted: Wed Jul 05, 2023 9:01 pm
by standay
Sounds good.

Thanks Sergey

Stan

Re: Preset RVAction Dialog Properties

Posted: Fri Jul 28, 2023 12:00 pm
by Sergey Tkachenko
The event will be named OnShowingDialog, and will be added to TrvActionFontEx, TrvActionParagraph, and TrvActionParaBorder.

Re: Preset RVAction Dialog Properties

Posted: Sat Jul 29, 2023 12:51 pm
by standay
Thanks Sergey. I'll try it as soon as it's available.

Stan

Re: Preset RVAction Dialog Properties

Posted: Thu Aug 03, 2023 11:27 pm
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

Re: Preset RVAction Dialog Properties

Posted: Fri Aug 04, 2023 12:35 pm
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.

Re: Preset RVAction Dialog Properties

Posted: Fri Aug 04, 2023 12:36 pm
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