diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2012-12-20 12:11:34 +0000 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2012-12-20 12:11:34 +0000 |
commit | b25ac3724bfba2d1d4b060c2905e34a9c9109a8e (patch) | |
tree | 7f8e0d6222eb73fd38ab15294c049ab5acce64f5 /src | |
parent | 3a8cde07a62cda5c37566375c063db25b1d5a5ef (diff) | |
download | fpGUI-b25ac3724bfba2d1d4b060c2905e34a9c9109a8e.tar.xz |
menus: No need to call BeginDraw/EndDraw
The whole HandlePaint() method is already covered by BeginDraw/EndDraw in a parent
class.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/fpg_menu.pas | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gui/fpg_menu.pas b/src/gui/fpg_menu.pas index a3fa0d2d..8da9302f 100644 --- a/src/gui/fpg_menu.pas +++ b/src/gui/fpg_menu.pas @@ -1024,8 +1024,6 @@ procedure TfpgPopupMenu.HandlePaint; var n: integer; begin - Canvas.BeginDraw; -// inherited HandlePaint; Canvas.Clear(BackgroundColor); // Canvas.SetColor(clBlack); // Canvas.DrawRectangle(0, 0, Width, Height); // black rectangle border @@ -1033,8 +1031,6 @@ begin for n := 0 to VisibleCount-1 do DrawRow(n, n = FFocusItem); - - Canvas.EndDraw; end; procedure TfpgPopupMenu.HandleShow; |