hello i am using lazarus un Ubuntu Linux i would like to add some image (16x16) in my statusbar, but display nothing i used this code:
*********************************
procedure TForm1.StatusBar1DrawPanel(StatusBar: TStatusBar;
Panel: TStatusPanel; const Rect: TRect);
begin
with StatusBar1.Canvas do
begin
Brush.Color := clBtnFace;
FillRect(Rect);
Font.Color := clblack;
Imagelist1.Draw(StatusBar1.Canvas,Rect.Left,Rect.Top,2);
TextOut(Rect.left + 20, Rect.top + 2,Message1[0]);
refresh;
End;
end;
*********************************
i read some post that in linux we have to do this else
*********************************
sbMain:TStatusBar
function GetPanelBounds:TRect;
{$ifdef Linux}
sbMainDrawPanel(sbMain,sbMain.Panels[0],GetPanelBounds(sbMain.Panels[0]));
{$endif}
*********************************
but i dont understarnd the last code
i guest i call to Drawpanel function but what GetPanelBounds is?, looks like a function but ...
any tips please ...