You've already forked lazarus-ccr
jvcllaz: Fix TJvNavigationPaine issues at designtime.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5397 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -954,6 +954,7 @@ type
|
||||
procedure Loaded; override;
|
||||
procedure DoDropDownMenu(Sender: TObject; MousePos: TPoint; var Handled: Boolean);
|
||||
function InternalGetPageClass: TJvCustomPageClass; override;
|
||||
procedure Paint; override;
|
||||
property NavPages[Index: Integer]: TJvNavPanelPage read GetNavPage;
|
||||
public
|
||||
constructor Create(AOwner: TComponent); override;
|
||||
@ -1618,6 +1619,16 @@ begin
|
||||
UpdatePositions;
|
||||
end;
|
||||
|
||||
procedure TJvCustomNavigationPane.Paint;
|
||||
begin
|
||||
if (csDesigning in ComponentState) or (PageCount = 0) then
|
||||
begin
|
||||
Canvas.Brush.Color := Color;
|
||||
Canvas.FillRect(0, 0, Width, Height);
|
||||
end;
|
||||
inherited;
|
||||
end;
|
||||
|
||||
procedure TJvCustomNavigationPane.SetActivePage(Page: TJvCustomPage);
|
||||
begin
|
||||
inherited SetActivePage(Page);
|
||||
|
Reference in New Issue
Block a user