Page 1 of 1

radio buttons in 150% magnification

Posted: Thu May 26, 2016 4:10 pm
by sol952
I am having the issue where I have added several radio buttons to my finish dialog next to the 2 default ones. They all work and look as expected (see sample 1). when the installer is run or the project is open in 150% magnification the size of the original radio boxes are different than the ones that I added (see sample 2). I have also added pictures of the settings for one of the original radio buttons and one of mine (samples 3 and 4). Do you have any ideas why they are different sizes at 150%? (heights are -17 and -22 at 150% and both are at -11 at 100%)

Re: radio buttons in 150% magnification

Posted: Thu May 26, 2016 4:10 pm
by sol952
here is the 4th picture

Re: radio buttons in 150% magnification

Posted: Fri May 27, 2016 11:32 am
by FrancescoT
Dear sol952,

honestly I don't understand where is the problem with the "check-box" controls (they are not radio buttons).

With both screen shots you posted, the font size is Always "-11" and the same happens running a quick test on my machine.

Regards

Re: radio buttons in 150% magnification

Posted: Fri May 27, 2016 2:25 pm
by sol952
The font size is the same when your run the installer in 100% (here Control Panel\Appearance and Personalization\Display) not not when in 150%

Re: radio buttons in 150% magnification

Posted: Mon May 30, 2016 1:31 pm
by FrancescoT
Which IA version you used?
Using IA x4 I don't see any problem ... the font sizes are always "-11" regardless if 100% or 150%.

Regards

Re: radio buttons in 150% magnification

Posted: Tue May 31, 2016 7:32 am
by sol952
I am using x4

Re: radio buttons in 150% magnification

Posted: Tue May 31, 2016 9:47 am
by sol952
Are you changing the display with Control Panel\Appearance and Personalization\Display?

Re: radio buttons in 150% magnification

Posted: Tue May 31, 2016 11:39 am
by FrancescoT
Yes, I did it.

... and the font Height properties are always "-11" regardless if 100% or 150%.
For what I see, this is exactly the same with the screen-shots you posted earlier (sample3.PNG and sample4.PNG).

Regards

Re: radio buttons in 150% magnification

Posted: Tue May 31, 2016 12:55 pm
by sol952
Sample 3 and 4 are both in 100% and are two different check boxes. #3 gets larger than #4 at 150%. I was just showing that they are the same in size and setting but the size is different.

Re: radio buttons in 150% magnification

Posted: Tue May 31, 2016 3:04 pm
by sol952
I found out how to get them the same size after opening the the dialog in Delphi

here is the Delphi code for the checkbox thats larger than the other

Code: Select all

  object RebootNow: TRzCheckBox
    Left = 200
    Top = 160
    Width = 78
    Height = 15
    Hint = 'REBOOTCOMPUTER'
    Caption = '&Restart now'
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clWindowText
    Font.Height = -11
    Font.Name = 'Tahoma'
    Font.Style = []
    ParentFont = False
    State = cbUnchecked
    TabOrder = 3
    Transparent = True
  end

and here is the smaller one

Code: Select all

  object RzCheckBox1: TRzCheckBox
    Left = 200
    Top = 204
    Width = 125
    Height = 15
    Hint = 'ReadMe'
    Caption = 'Show the Readme File'
    Color = clWhite
    ParentColor = False
    State = cbUnchecked
    TabOrder = 5
  end


if I remove this

Code: Select all

    Font.Charset = DEFAULT_CHARSET
    Font.Color = clWindowText
    Font.Height = -11
    Font.Name = 'Tahoma'
    Font.Style = []
    ParentFont = False

from the first one they are the same size.

I don't know why it made a difference though since the global font information was the same as what was declared in the checkbox

Re: radio buttons in 150% magnification

Posted: Wed Jun 01, 2016 12:56 pm
by FrancescoT
Strange!
Anyway I am happy you have been able to find a solution.

Regards