Page 1 of 1

Font for heading message

Posted: January 20th, 2022, 5:38 am
by htuser
Dear CSPro Developer Team,
I would like to customize font for some heading message using for displaying accept, showarray, list.show etc.
I'm thinking about:
a) SetFont
but it's not for heading message and also, Calls to this function are ignored when executed on mobile devices.
b) The new Function named argument, textColor :=, but there's no indication that we can use it for heading font.
Please any help.
Thanks in advance,

Re: Font for heading message

Posted: January 20th, 2022, 11:07 am
by sherrell
Technically, yes, but you'll need to modify the standard HTML dialogs for accept/showarray/etc. The files you need to modify are located in "%CSPro install folder%\html\dialogs\"

HOWEVER, this will not work on Android devices, and it will only work on Windows devices that you have applied the same change(s).

Is this type of functionality (font/display control) something you think you'd use on a regular basis? If so, it could probably be added in the next release.

Sherrell

Re: Font for heading message

Posted: January 21st, 2022, 2:48 pm
by htuser
Dear Sherell,
Thanks for you support. It's more important to have it on Android.
I would like to know if there's a way to add theses files located in "%CSPro install folder%\html\dialogs\" as a ressources files and replace Android one's during runtime?

We would like have different heading font in theses dialogs, mainly on Android, i think it's important since this will easily differentiate heading text from modalities text.
Best,

Re: Font for heading message

Posted: January 24th, 2022, 11:33 am
by sherrell
Unfortunately you won't have the rights.

Greg said it could be solved by adding an HtmlDialogs=.\my-dir in the PFF. Greg said he'll add this as an option for 7.7.1

Sherrell

Re: Font for heading message

Posted: January 25th, 2022, 12:22 pm
by Gregory Martin
I've added this, so when 7.7.1 comes out, you can use this functionality on Windows/Android. If you specify a directory in the PFF using the attribute HtmlDialogs, the HTML dialogs will be evaluated as follows:

CSPro dialogs:

1. In the HtmlDialogs directory, if it is defined.
2. In the CSPro installation's html/dialogs directory.

Custom dialogs (created using htmldialog):

1. In the application directory.
2. In the HtmlDialogs directory, if it is defined.
3. In the CSPro installation's html/dialogs directory.

Re: Font for heading message

Posted: January 25th, 2022, 12:34 pm
by htuser
Thanks Sherrell and Greg. It will be a good solution for having the same heading font on Android and on Windows.
Best,

Re: Font for heading message

Posted: February 8th, 2022, 1:40 pm
by Gregory Martin

Re: Font for heading message

Posted: February 8th, 2022, 2:47 pm
by htuser
Thanks a lot Greg. This will help a lot in having more control in CSEntry UI.
Best,