Merge branch 'bsteers4-master-patch-14221' into 'master'
Fix MessageView.class See merge request gambas/gambas!183
This commit is contained in:
commit
54a2a6bf0f
1 changed files with 8 additions and 7 deletions
|
@ -95,22 +95,23 @@ Public Sub Open(Text As String, Optional Icon As Picture)
|
||||||
|
|
||||||
If $sText = Text Then Return
|
If $sText = Text Then Return
|
||||||
|
|
||||||
|
$hIcon = Icon
|
||||||
|
If Not Icon Then
|
||||||
|
Try $hIcon = Picture["icon:/32/warning"]
|
||||||
|
If Error Then $hIcon = Picture["img/32/warning.png"]
|
||||||
|
Endif
|
||||||
|
|
||||||
If Me.Visible Then
|
If Me.Visible Then
|
||||||
|
|
||||||
$aText.Add(Text)
|
$aText.Add(Text)
|
||||||
$aIcon.Add(Icon)
|
$aIcon.Add($hIcon)
|
||||||
UpdateButton
|
UpdateButton
|
||||||
Return
|
Return
|
||||||
|
|
||||||
Endif
|
Endif
|
||||||
|
|
||||||
$sText = Text
|
$sText = Text
|
||||||
$hIcon = Icon
|
|
||||||
If Not Icon Then
|
|
||||||
Try $hIcon = Picture["icon:/32/warning"]
|
|
||||||
If Error Then $hIcon = Picture["img/32/warning.png"]
|
|
||||||
Endif
|
|
||||||
|
|
||||||
DoOpen
|
DoOpen
|
||||||
|
|
||||||
End
|
End
|
||||||
|
|
Loading…
Reference in a new issue