Common/Dialog: Fix long messages
This commit is contained in:
@@ -28,7 +28,7 @@ Public Class frmDialog
|
||||
InitializeComponent()
|
||||
|
||||
' Fügen Sie Initialisierungen nach dem InitializeComponent()-Aufruf hinzu.
|
||||
txtContent2.Text = pMessageText
|
||||
txtContent.Text = pMessageText
|
||||
txtTitle.Text = pTitle
|
||||
|
||||
Select Case pDialogType
|
||||
@@ -62,11 +62,12 @@ Public Class frmDialog
|
||||
|
||||
End Select
|
||||
|
||||
Dim oLineBreaks = txtContent2.Text.Split(vbNewLine).Count
|
||||
Dim oLineBreaks = txtContent.Text.Split(vbNewLine).Count
|
||||
|
||||
If oLineBreaks > 6 Then
|
||||
Dim oHeightOffset = oLineBreaks * 20
|
||||
Height += oHeightOffset
|
||||
txtContent.Height += oHeightOffset
|
||||
End If
|
||||
|
||||
btnPositive.Focus()
|
||||
|
||||
Reference in New Issue
Block a user