mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-04 08:07:34 +01:00
dont draw disabled state image for bitbtn in designer
git-svn-id: trunk@12817 -
This commit is contained in:
parent
f32a11b058
commit
79d45194b8
@ -366,7 +366,7 @@ begin
|
||||
end else begin
|
||||
OldBitmap := HBITMAP(Windows.SendMessage(BitBtnHandle, BM_GETIMAGE, IMAGE_BITMAP, 0));
|
||||
if NewBitmap <> 0 then
|
||||
DrawBitmap(BitBtnEnabledToButtonState[BitBtn.Enabled]);
|
||||
DrawBitmap(BitBtnEnabledToButtonState[BitBtn.Enabled or (csDesigning in BitBtn.ComponentState)]);
|
||||
Windows.SendMessage(BitBtnHandle, BM_SETIMAGE, IMAGE_BITMAP, LPARAM(NewBitmap));
|
||||
if OldBitmap <> 0 then
|
||||
DeleteObject(OldBitmap);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user