mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 23:49:36 +02:00
cocoa: Improves status bar default size and looks
git-svn-id: trunk@49634 -
This commit is contained in:
parent
b056d5b455
commit
f1a6111db4
@ -3208,7 +3208,7 @@ begin
|
||||
FillChar(nr, sizeof(nr), 0);
|
||||
|
||||
r := lclClientFrame();
|
||||
nr.size.height := STATUSBAR_DEFAULT_HEIGHT;
|
||||
nr.size.height := StatusBar.Height+5; // it gets closer to filling the whole area with +5 no idea why
|
||||
|
||||
if StatusBar.SimplePanel then
|
||||
begin
|
||||
|
@ -29,6 +29,8 @@ type
|
||||
class procedure PanelUpdate(const AStatusBar: TStatusBar; PanelIndex: integer); override;
|
||||
class procedure SetPanelText(const AStatusBar: TStatusBar; PanelIndex: integer); override;
|
||||
class procedure Update(const AStatusBar: TStatusBar); override;
|
||||
//
|
||||
class procedure GetPreferredSize(const AWinControl: TWinControl; var PreferredWidth, PreferredHeight: integer; WithThemeSpace: Boolean); override;
|
||||
end;
|
||||
|
||||
{ TCocoaWSTabSheet }
|
||||
@ -260,6 +262,13 @@ begin
|
||||
|
||||
end;
|
||||
|
||||
class procedure TCocoaWSStatusBar.GetPreferredSize(const AWinControl: TWinControl;
|
||||
var PreferredWidth, PreferredHeight: integer; WithThemeSpace: Boolean);
|
||||
begin
|
||||
PreferredWidth := 0;
|
||||
PreferredHeight := STATUSBAR_DEFAULT_HEIGHT;
|
||||
end;
|
||||
|
||||
{ TCocoaWSCustomPage }
|
||||
|
||||
class function TCocoaWSCustomPage.GetCocoaTabPageFromHandle(AHandle: HWND): TCocoaTabPage;
|
||||
|
Loading…
Reference in New Issue
Block a user