0
I need to put a link in the status bar of the system, clicking on it will open another function that is already ready, a StatusBar
has 3 panels and only 3 should open when click. I am using the event OnDrawPanel
to try to format the text in link format.
Follows the code:
procedure TfAAA001.StatusBar1DrawPanel(StatusBar: TStatusBar; Panel: TStatusPanel; const Rect: TRect);
begin
if Panel.Index = 2 then
begin
StatusBar1.Canvas.Font.Color := clBlue;
StatusBar1.Canvas.FillRect(Rect);
StatusBar1.Canvas.TextOut(Rect.Right, Rect.Top + 1, Panel.Text);
end;
end;
Thus the StatusBar
not starting, someone knows how to solve.
You were able to carry out the tests with the answer I proposed?
– Junior Moreira