Patches item #3564963, was opened at 2012-09-05 02:22
Message generated for change (Tracker Item Submitted) made by ecaradec
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=373087&aid=3564963&group_id=22049
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: User Interface
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Emmanuel Caradec (ecaradec)
Assigned to: Joost Verburg (joostverburg)
Summary: left, center and right alignment of nsDialogs links
Initial Comment:
Here is a patch to add left, center and right alignement on nsDialogs links. I only tested it with windows 7 and I'm not sure how it behave with rtl window. It works well for my purpose though.
Here is how to use it. This code can be added to example.nsi :
${NSD_CreateLink} 300 60 95 22 "Hello there"
pop $R0
System::Call "user32::GetWindowLong(i $R0, i ${GWL_STYLE}) i .r0"
IntOp $0 $0 & 0xFFFFFCFF
IntOp $0 $0 | ${BS_RIGHT}
System::Call "user32::SetWindowLong(i $R0, i ${GWL_STYLE}, i $0)"
As links are buttons, the styles to use are BS_LEFT,BS_CENTER and BS_RIGHT.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=373087&aid=3564963&group_id=22049
|