Font for heading message

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
htuser
Posts: 631
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Font for heading message

Post 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,
G.VOLNY, a CSProuser from Haiti, since 2004
sherrell
Posts: 397
Joined: April 2nd, 2014, 9:16 pm
Location: Washington, DC

Re: Font for heading message

Post 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
htuser
Posts: 631
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Re: Font for heading message

Post 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,
G.VOLNY, a CSProuser from Haiti, since 2004
sherrell
Posts: 397
Joined: April 2nd, 2014, 9:16 pm
Location: Washington, DC

Re: Font for heading message

Post 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
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Font for heading message

Post 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.
htuser
Posts: 631
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Re: Font for heading message

Post by htuser »

Thanks Sherrell and Greg. It will be a good solution for having the same heading font on Android and on Windows.
Best,
G.VOLNY, a CSProuser from Haiti, since 2004
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Font for heading message

Post by Gregory Martin »

htuser
Posts: 631
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Re: Font for heading message

Post by htuser »

Thanks a lot Greg. This will help a lot in having more control in CSEntry UI.
Best,
G.VOLNY, a CSProuser from Haiti, since 2004
Post Reply