mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 07:21:34 +02:00
Cocoa: bitbtn: handle glyphs only if they are really visible
git-svn-id: trunk@57923 -
This commit is contained in:
parent
6c60f25968
commit
0a0c499b42
@ -128,7 +128,7 @@ var
|
||||
begin
|
||||
//WriteLn('[TCocoaWSBitBtn.SetGlyph]');
|
||||
Img := nil;
|
||||
if ABitBtn.CanShowGlyph then
|
||||
if ABitBtn.CanShowGlyph(True) then
|
||||
begin
|
||||
AGlyph := TBitmap.Create;
|
||||
AValue.GetImageIndexAndEffect(bsUp, ABitBtn.Font.PixelsPerInch,
|
||||
@ -158,7 +158,7 @@ var
|
||||
ImagePos: NSCellImagePosition;
|
||||
begin
|
||||
|
||||
if (ABitBtn.CanShowGlyph) then
|
||||
if ABitBtn.CanShowGlyph(True) then
|
||||
ImagePos := LCLGlyphPosToCocoa(AValue)
|
||||
else
|
||||
ImagePos := NSNoImage;
|
||||
|
Loading…
Reference in New Issue
Block a user