mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 14:39:20 +02:00
Added if HandleAllocated to SetBorderStyle
git-svn-id: trunk@5498 -
This commit is contained in:
parent
d4265baaa0
commit
c9f9f10d1a
@ -992,7 +992,8 @@ end;
|
|||||||
procedure TWinControl.SetBorderStyle(NewStyle: TBorderStyle);
|
procedure TWinControl.SetBorderStyle(NewStyle: TBorderStyle);
|
||||||
begin
|
begin
|
||||||
FBorderStyle := NewStyle;
|
FBorderStyle := NewStyle;
|
||||||
TWSWinControlClass(WidgetSetClass).SetBorderStyle(Self, NewStyle);
|
if HandleAllocated then
|
||||||
|
TWSWinControlClass(WidgetSetClass).SetBorderStyle(Self, NewStyle);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------}
|
{------------------------------------------------------------------------------}
|
||||||
@ -3544,6 +3545,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.232 2004/05/21 21:58:01 vincents
|
||||||
|
Added if HandleAllocated to SetBorderStyle
|
||||||
|
|
||||||
Revision 1.231 2004/05/21 10:02:59 micha
|
Revision 1.231 2004/05/21 10:02:59 micha
|
||||||
consistent BorderStyle naming
|
consistent BorderStyle naming
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user