Skip to content

Commit

Permalink
Merge pull request #170 from hustbeef/master
Browse files Browse the repository at this point in the history
Fixed: update font property in Canvas.TextOut
  • Loading branch information
XusinboyBekchanov committed May 6, 2024
2 parents eb0f448 + 5ac8683 commit 17b1435
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion mff/PagePanel.bas
Expand Up @@ -197,7 +197,10 @@ Namespace My.Sys.Forms
End Select
End With
End If
If ShowCaption Then Canvas.TextOut(Current.X, Current.Y, FText, Font.Color, FBackColor)
If ShowCaption Then
SelectObject(Canvas.Handle, Canvas.Font.Handle)
Canvas.TextOut(Current.X, Current.Y, FText, Font.Color, FBackColor)
End If
If OnPaint Then OnPaint(*Designer, This, Canvas)
If DoubleBuffered Then
BitBlt(Dc, 0, 0, R.Right - R.left, R.Bottom - R.top, memDC, 0, 0, SRCCOPY)
Expand Down
5 changes: 4 additions & 1 deletion mff/Picture.bas
Expand Up @@ -264,7 +264,10 @@ Namespace My.Sys.Forms
End Select
End With
End If
If ShowCaption Then Canvas.TextOut(Current.X, Current.Y, FText, Font.Color, FBackColor)
If ShowCaption Then
SelectObject(Canvas.Handle, Canvas.Font.Handle)
Canvas.TextOut(Current.X, Current.Y, FText, Font.Color, FBackColor)
End If
If OnPaint Then OnPaint(*Designer, This, Canvas)
If DoubleBuffered Then
BitBlt(Dc, 0, 0, R.Right - R.left, R.Bottom - R.top, memDC, 0, 0, SRCCOPY)
Expand Down

0 comments on commit 17b1435

Please sign in to comment.