![]() |
#1 |
Junior Member
Join Date: Feb 2018
Posts: 5
|
Checkbox text alignment
Using nsDialogs I have a checkbox control with a long text, so that the text get wraped across three lines.
In this case the square of the checkbox is horizontaly aligned with the text. Is it possible that the square of the checkbox is aligned with the first row of the text? Regards Carsten |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
The layout you are talking about is probably the Windows default.
Showing us your nsDialogs code would be great so I don't have to waste time trying to replicate whatever you are taking about. Windows version and selected theme/visual style is also useful information to have... IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Feb 2018
Posts: 5
|
Im on Windows 10 (1709) with default theme/visual style and NSIS 3.03
Using MUI2 and the control is on an custom page with the following code: code: In this case the checkbox square is aligned with the 2nd row but i would like to achieve alignment with the 1st row. Thanks Carsten |
![]() |
![]() |
![]() |
#4 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
https://groups.google.com/d/topic/mi...on/gHgAFaXrXKo claims BS_TOP will work. You can try adding ${BS_TOP} with the NSD_AddStyle macro.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Feb 2018
Posts: 5
|
I tried a view button styles beside ${BS_TOP} like ${BS_MULTILINE} and ${BS_TEXT} and a combination of them but now luck yet.
https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx A Workaround would be a seperate label but to get the same behave its more coding. |
![]() |
![]() |
![]() |
#6 | |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
nsDialogs defaults to center but you can pick your own style:
Quote:
IntOp $PostCount $PostCount + 1 |
|
![]() |
![]() |
![]() |
#7 |
Junior Member
Join Date: Feb 2018
Posts: 5
|
![]() Thanks very much! |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|