• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • NSIS: Nullsoft Scriptable Install System
  • Patches
NSIS: Nullsoft Scriptable Install System

left, center and right alignment of nsDialogs links

Windows installer development tool

Brought to you by: anders_k, eccles, joostverburg, justin1014, and 2 others
  • Summary
  • Files
  • Reviews
  • Support
  • Mailing Lists
  • Tickets ▾
    • Bugs
    • Feature Requests
    • Patches
  • News
  • External Link ▾
    • Donate
    • Wiki
  • Code
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

  • 3.x Stable

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#243 left, center and right alignment of nsDialogs links

open
Joost Verburg
User Interface (3)
5
2012-09-05
2012-09-05
Emmanuel Caradec
No

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.

Discussion

  • Emmanuel Caradec

    Emmanuel Caradec - 2012-09-05
     
    links-alignement.patch
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    225 Broadway Suite 1600
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2025 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.