Skip to content

Show the whole link in the wizard's question dialog#33

Open
xroche wants to merge 1 commit into
masterfrom
fix/wizard-link-url-truncated
Open

Show the whole link in the wizard's question dialog#33
xroche wants to merge 1 commit into
masterfrom
fix/wizard-link-url-truncated

Conversation

@xroche

@xroche xroche commented Jul 17, 2026

Copy link
Copy Markdown
Owner

The "Download web site(s) + questions" dialog showed only as much of the URL as fit on one line, which left no way to judge the link you were being asked about. The link lived in an LTEXT static, and a static only wraps at whitespace, so a URL is one unbreakable word and gets clipped with no ellipsis. It is now a read-only multiline edit, which breaks a long word at a character boundary, and the dialog is wider. That also drops an unreported bug for free: a static treats & as an accelerator prefix, so &x= in a query string used to render as an underlined x=.

The groupbox around the radio buttons was IDC_STATIC, so the SetDlgItemTextCP(this, IDC_STATIC_rule, LANG_M2) in WizLinks.cpp had been a silent no-op and the box never translated. It carries the right ID now, and its English label matches what lang.def has always said LANG_M2 is ("Choose a rule") rather than "Link:", which described the URL that sits outside the box. Resource-only apart from that ID. Rendering needs an eyeball on a VM: CI compiles and links the dialog but cannot see it.

Closes #277

An LTEXT static only wraps at whitespace, so a URL is a single unbreakable
word: the wizard's question dialog clipped it at one line with no ellipsis,
leaving no way to tell which link the question was about. Use a read-only
multiline edit, which breaks a long word at a character boundary, and widen
the dialog. A static also eats & as an accelerator prefix, so query-string
URLs rendered wrong; an edit does not.

The groupbox was IDC_STATIC, making the SetDlgItemTextCP(IDC_STATIC_rule,
LANG_M2) call in WizLinks.cpp a no-op that never translated. Give it the ID
the code already expects, and label it "Choose a rule" as lang.def defines
LANG_M2: it wraps the radio buttons, not the URL.

Closes #277

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Xavier Roche <roche@httrack.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant