Error message

Access denied. You may need to login below or register to access this page.

Access Denied / User log in

Please let our ADS show!

This sites offers only FREE software and it's supported by a few advertisement boxes (no intrusive popups).
Please:

  • disable your AdBlocker by adding CoolSoft website to whitelist
  • give the proper cookie consent
  • enable JavaScript for this website

This seconds wait is to let you update your browser configuration...

Ok, I've done the required changes... now show me your content!
!!! Please enable JavaScript !!!

Quick login

Use your existing social account to login without registration: no confirmation mail to wait for, no new password to remember, quick, easy, safe.

...or use your CoolSoft account

Enter your CoolSoft username.
Enter the password that accompanies your username.
Add reply | CoolSoft

Add reply

Please let our ADS show!

This sites offers only FREE software and it's supported by a few advertisement boxes (no intrusive popups).
Please:

  • disable your AdBlocker by adding CoolSoft website to whitelist
  • give the proper cookie consent
  • enable JavaScript for this website

This seconds wait is to let you update your browser configuration...

Ok, I've done the required changes... now show me your content!
!!! Please enable JavaScript !!!
(If you're a human, don't change the following field)
Your first name.
(If you're a human, don't change the following field)
Your first name.

Warning!

You're posting your message as anonymous user.

By registering you'll be allowed to receive notifications of post replies and new threads.
Registration is really quick and only requires you to choose an username and provide a valid email address.

Click here to to register.

A confirmation mail will be sent to this address.
Your email address won't be published.

More information about text formats

Filtered HTML

  • Allowed HTML tags: <a> <blockquote> <br> <cite> <code> <dd> <del> <dl> <dt> <em> <img> <li> <ol> <p> <pre> <s> <span> <strike> <strong> <ul>
    Allowed Style properties: background-color, color, font-size, font-style, height, text-align, text-decoration, text-transform, width
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <pre>, <c>, <cpp>, <csharp>, <drupal5>, <drupal6>, <javascript>, <php>. The supported tag styles are: <foo>, [foo].
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Cancel
Posts: 1972
Joined: March 25, 2012 - 01:19
Re: More flexibility for font definitions

Another idea could be a single CustomScript at page level where you read the desired font only once:

SendMessage $hCtl_mypage ${WM_GETFONT} $0 0

Then set this font to all other controls:

SendMessage $hCtl_mypage_label1 ${WM_SETFONT} $0 0
SendMessage $hCtl_mypage_label2 ${WM_SETFONT} $0 0
SendMessage $hCtl_mypage_label3 ${WM_SETFONT} $0 0
...

Haven't tested it but it should work...

Posts: 2
Joined: November 21, 2014 - 11:24
Re: More flexibility for font definitions

I just needed to define a font using the current family name and size, but underlined. I solved it using this CustomControlScript:

CreateFont $0 "$(^Font)" "$(^FontSize)" "400" /UNDERLINE
SendMessage $hCtl_mypage_label3 ${WM_SETFONT} $0 0

If I could had set font's size and name as ^Font and ^FontSize directly using the properties panel, then I won't needed to define a CustomControlScript. Not a big issue, obviously.
 
All started when I changed main font using SetFont (and/or Resoure Hacker), and then every custom page's layout broke because fonts aren't created as relative to the main font... Now I have to manually fix every label, defining CustomControlScript for each label.

Posts: 1972
Joined: March 25, 2012 - 01:19
Re: More flexibility for font definitions

ControlCustomScript can be safely used to put your custom "needings".
I'll wrote only the font-related part into ControlCustomScript part, leaving the rest managed by NSISDialogDesigner:

SendMessage $hCtl_Form1_Label1 ${WM_SETFONT} $(^Font) 0

Hope I correctly understood your question, otherwise feel free to post a sample script here and describe how it should be.

Posts: 2
Joined: November 21, 2014 - 11:24
More flexibility for font definitions

Hi,

I would like to define a label as underlined, but I would like to use $(^Font) as font name and $(^Fontsize) as size. The fact is I sometimes modify the stub using Resource hacker, and all elements resize well except custom defined fonts.

I assume I could use ControlCustomScript, but it would be just a workaround. It would be really nice if I could use those system variables to create "relative" fonts.

Thanks