我TLabel
在自定义页面上定义了这个:
{ lblPromptMode (TLabel) }
lblPromptMode := TLabel.Create(pageAutoBackup);
lblPromptMode.Parent := pnlBackupMode;
lblPromptMode.Enabled := True;
lblPromptMode.Visible := True;
lblPromptMode.Top := radBackupModeManual.Top + radBackupModeManual.Height + ScaleY(10);
lblPromptMode.Width := pnlBackupMode.Width;
lblPromptMode.Font.Color := $000000;
lblPromptMode.Color := $F0F0F0;
lblPromptMode.Caption := ExpandConstant('{cm:lblPromptMode}');
我现在正在对页面进行本地化,并在添加荷兰语翻译时遇到一个查询。
显示窗口时,实际上看起来不错(我正在脚本中使用现代样式设置):
但是,如果我将窗口的大小调整为最小:
如您所见,现在已裁剪了此控件。我们可以(并且应该)以任何方式解决此问题吗?
There's no easy way to solve this. While you can set the label to wrap, if it is too long (TLabel.WordWrap
), you would have to reserve space for two lines on the dialog. That would would not look good with shorter translations, as it disconnects the label from the control.
Implementing the page in a way that it would automatically expand the label to two lines, when needed only, is lot of work and not usual in classic Windows applications.
I'd recommend you to:
WizardForm.Constraints.MinWidth
);本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句