mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 21:37:11 +02:00
reduced paint messages on destroy
git-svn-id: trunk@2660 -
This commit is contained in:
parent
d2ef70e4c2
commit
f3340fb77b
@ -1618,11 +1618,14 @@ var
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
if (Parent=nil) or (not Parent.HandleAllocated)
|
||||||
|
or ([csLoading,csDestroying]*Parent.ComponentState<>[])
|
||||||
|
or ([csLoading,csDestroying]*ComponentState<>[])
|
||||||
|
then exit;
|
||||||
|
|
||||||
if (IsVisible or (csDesigning in ComponentState)
|
if (IsVisible or (csDesigning in ComponentState)
|
||||||
and not (csNoDesignVisible in ControlStyle))
|
and not (csNoDesignVisible in ControlStyle))
|
||||||
and (Parent <> nil) and Parent.HandleAllocated
|
then begin
|
||||||
and (not (csLoading in Parent.ComponentState)) then
|
|
||||||
begin
|
|
||||||
Rect := BoundsRect;
|
Rect := BoundsRect;
|
||||||
InvalidateRect(Parent.Handle, @Rect, not (IsOpaque or
|
InvalidateRect(Parent.Handle, @Rect, not (IsOpaque or
|
||||||
(csOpaque in Parent.ControlStyle) or BackgroundClipped));
|
(csOpaque in Parent.ControlStyle) or BackgroundClipped));
|
||||||
@ -1655,10 +1658,11 @@ procedure TControl.Repaint;
|
|||||||
var
|
var
|
||||||
DC: HDC;
|
DC: HDC;
|
||||||
begin
|
begin
|
||||||
|
if (Parent=nil) or (not Parent.HandleAllocated)
|
||||||
|
or (csDestroying in ComponentState) then exit;
|
||||||
|
|
||||||
if (Visible or (csDesigning in ComponentState)
|
if (Visible or (csDesigning in ComponentState)
|
||||||
and not (csNoDesignVisible in ControlStyle))
|
and not (csNoDesignVisible in ControlStyle))
|
||||||
and (Parent <> nil)
|
|
||||||
and Parent.HandleAllocated
|
|
||||||
then
|
then
|
||||||
if csOpaque in ControlStyle then
|
if csOpaque in ControlStyle then
|
||||||
begin
|
begin
|
||||||
@ -2414,6 +2418,9 @@ end;
|
|||||||
|
|
||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.135 2003/06/20 12:56:53 mattias
|
||||||
|
reduced paint messages on destroy
|
||||||
|
|
||||||
Revision 1.134 2003/06/13 14:38:01 mattias
|
Revision 1.134 2003/06/13 14:38:01 mattias
|
||||||
fixed using streamed clientwith/height for child anchors
|
fixed using streamed clientwith/height for child anchors
|
||||||
|
|
||||||
|
@ -1155,6 +1155,8 @@ var
|
|||||||
ControlsNeedsClipping: boolean;
|
ControlsNeedsClipping: boolean;
|
||||||
begin
|
begin
|
||||||
//writeln('[TWinControl.PaintHandler] ',Name,':',ClassName,' DC=',HexStr(Message.DC,8));
|
//writeln('[TWinControl.PaintHandler] ',Name,':',ClassName,' DC=',HexStr(Message.DC,8));
|
||||||
|
if (csDestroying in ComponentState) or (not HandleAllocated) then exit;
|
||||||
|
|
||||||
Assert(False, Format('Trace:> [TWinControl.PaintHandler] %s --> Msg.DC: 0x%x', [ClassName, TheMessage.DC]));
|
Assert(False, Format('Trace:> [TWinControl.PaintHandler] %s --> Msg.DC: 0x%x', [ClassName, TheMessage.DC]));
|
||||||
DC := TheMessage.DC;
|
DC := TheMessage.DC;
|
||||||
if DC = 0 then DC := BeginPaint(Handle, PS);
|
if DC = 0 then DC := BeginPaint(Handle, PS);
|
||||||
@ -1200,6 +1202,10 @@ var
|
|||||||
TempControl : TCOntrol;
|
TempControl : TCOntrol;
|
||||||
begin
|
begin
|
||||||
//writeln('[TWinControl.PaintControls] ',Name,':',ClassName,' DC=',HexStr(DC,8));
|
//writeln('[TWinControl.PaintControls] ',Name,':',ClassName,' DC=',HexStr(DC,8));
|
||||||
|
if (csDestroying in ComponentState)
|
||||||
|
or ((DC=0) and (not HandleAllocated)) then
|
||||||
|
exit;
|
||||||
|
|
||||||
// Controls that are not TWinControl, have no handle of their own, and so
|
// Controls that are not TWinControl, have no handle of their own, and so
|
||||||
// they are repainted as part of the parent:
|
// they are repainted as part of the parent:
|
||||||
if FControls <> nil then
|
if FControls <> nil then
|
||||||
@ -1258,6 +1264,10 @@ var
|
|||||||
Message: TLMessage;
|
Message: TLMessage;
|
||||||
begin
|
begin
|
||||||
//writeln('[TWinControl.PaintWindow] ',Name,':',Classname,' DC=',HexStr(DC,8));
|
//writeln('[TWinControl.PaintWindow] ',Name,':',Classname,' DC=',HexStr(DC,8));
|
||||||
|
if (csDestroying in ComponentState)
|
||||||
|
or ((DC=0) and (not HandleAllocated)) then
|
||||||
|
exit;
|
||||||
|
|
||||||
Message.Msg := LM_PAINT;
|
Message.Msg := LM_PAINT;
|
||||||
Message.WParam := DC;
|
Message.WParam := DC;
|
||||||
Message.LParam := 0;
|
Message.LParam := 0;
|
||||||
@ -1727,7 +1737,7 @@ end;
|
|||||||
{------------------------------------------------------------------------------}
|
{------------------------------------------------------------------------------}
|
||||||
Procedure TWinControl.Invalidate;
|
Procedure TWinControl.Invalidate;
|
||||||
Begin
|
Begin
|
||||||
if HandleAllocated
|
if HandleAllocated and (not (csDestroying in ComponentState))
|
||||||
then CNSendMessage(LM_Invalidate,Self,Nil);
|
then CNSendMessage(LM_Invalidate,Self,Nil);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -1736,13 +1746,12 @@ end;
|
|||||||
{------------------------------------------------------------------------------}
|
{------------------------------------------------------------------------------}
|
||||||
Procedure TWinControl.Repaint;
|
Procedure TWinControl.Repaint;
|
||||||
Begin
|
Begin
|
||||||
if HandleAllocated
|
if HandleAllocated and (not (csDestroying in ComponentState))
|
||||||
then begin
|
then begin
|
||||||
CNSendMessage(LM_PAINT, Self, nil);
|
CNSendMessage(LM_PAINT, Self, nil);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
{------------------------------------------------------------------------------}
|
{------------------------------------------------------------------------------}
|
||||||
{ TWinControl DoMouseWheel "Event Handler" }
|
{ TWinControl DoMouseWheel "Event Handler" }
|
||||||
{------------------------------------------------------------------------------}
|
{------------------------------------------------------------------------------}
|
||||||
@ -2161,6 +2170,8 @@ var
|
|||||||
PS : TPaintStruct;
|
PS : TPaintStruct;
|
||||||
begin
|
begin
|
||||||
//writeln('[TWinControl.WMPaint] ',Name,':',ClassName,' ',HexStr(Msg.DC,8));
|
//writeln('[TWinControl.WMPaint] ',Name,':',ClassName,' ',HexStr(Msg.DC,8));
|
||||||
|
if (csDestroying in ComponentState) then exit;
|
||||||
|
|
||||||
Assert(False, Format('Trace:> [TWinControl.WMPaint] %s Msg.DC: 0x%x', [ClassName, Msg.DC]));
|
Assert(False, Format('Trace:> [TWinControl.WMPaint] %s Msg.DC: 0x%x', [ClassName, Msg.DC]));
|
||||||
if (Msg.DC <> 0) then
|
if (Msg.DC <> 0) then
|
||||||
begin
|
begin
|
||||||
@ -2816,6 +2827,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.141 2003/06/20 12:56:53 mattias
|
||||||
|
reduced paint messages on destroy
|
||||||
|
|
||||||
Revision 1.140 2003/06/19 22:38:21 mattias
|
Revision 1.140 2003/06/19 22:38:21 mattias
|
||||||
fixed update on changing package usage options
|
fixed update on changing package usage options
|
||||||
|
|
||||||
|
@ -2279,59 +2279,60 @@ var
|
|||||||
begin
|
begin
|
||||||
//if Widget<>nil then begin
|
//if Widget<>nil then begin
|
||||||
|
|
||||||
// use the gtk paint functions to draw a widget style dependent button
|
// use the gtk paint functions to draw a widget style dependent button
|
||||||
|
|
||||||
// set State (the interior filling style)
|
// set State (the interior filling style)
|
||||||
if (DFCS_INACTIVE and uState)<>0 then begin
|
if (DFCS_INACTIVE and uState)<>0 then begin
|
||||||
// button disabled
|
// button disabled
|
||||||
State:=GTK_STATE_INSENSITIVE;
|
State:=GTK_STATE_INSENSITIVE;
|
||||||
end else begin
|
end else begin
|
||||||
if (DFCS_PUSHED and uState)<>0 then begin
|
|
||||||
// button enabled, down
|
|
||||||
if (DFCS_CHECKED and uState)<>0 then begin
|
|
||||||
// button enabled, down, special (e.g. mouse over)
|
|
||||||
State:=GTK_STATE_ACTIVE;
|
|
||||||
end else begin
|
|
||||||
// button enabled, down, normal
|
|
||||||
State:=GTK_STATE_SELECTED;
|
|
||||||
end;
|
|
||||||
end else begin
|
|
||||||
// button enabled, up
|
|
||||||
if (DFCS_CHECKED and uState)<>0 then begin
|
|
||||||
// button enabled, up, special (e.g. mouse over)
|
|
||||||
State:=GTK_STATE_PRELIGHT;
|
|
||||||
end else begin
|
|
||||||
// button enabled, up, normal
|
|
||||||
State:=GTK_STATE_NORMAL;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
// set Shadow (the border style)
|
|
||||||
if (DFCS_PUSHED and uState)<>0 then begin
|
if (DFCS_PUSHED and uState)<>0 then begin
|
||||||
// button down
|
// button enabled, down
|
||||||
Shadow:=GTK_SHADOW_IN;
|
if (DFCS_CHECKED and uState)<>0 then begin
|
||||||
end else begin
|
// button enabled, down, special (e.g. mouse over)
|
||||||
if (((DFCS_FLAT+DFCS_CHECKED) and uState)=DFCS_FLAT) then begin
|
State:=GTK_STATE_ACTIVE;
|
||||||
// button up, flat, no special
|
|
||||||
Shadow:=GTK_SHADOW_NONE;
|
|
||||||
end else begin
|
end else begin
|
||||||
// button up
|
// button enabled, down, normal
|
||||||
Shadow:=GTK_SHADOW_OUT;
|
State:=GTK_STATE_SELECTED;
|
||||||
|
end;
|
||||||
|
end else begin
|
||||||
|
// button enabled, up
|
||||||
|
if (DFCS_CHECKED and uState)<>0 then begin
|
||||||
|
// button enabled, up, special (e.g. mouse over)
|
||||||
|
State:=GTK_STATE_PRELIGHT;
|
||||||
|
end else begin
|
||||||
|
// button enabled, up, normal
|
||||||
|
State:=GTK_STATE_NORMAL;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
aDC:=TDeviceContext(DC);
|
// set Shadow (the border style)
|
||||||
DCOrigin:=GetDCOffset(aDC);
|
if (DFCS_PUSHED and uState)<>0 then begin
|
||||||
|
// button down
|
||||||
aStyle := GetStyle('button');
|
Shadow:=GTK_SHADOW_IN;
|
||||||
If aStyle = nil then
|
end else begin
|
||||||
aStyle := Widget^.theStyle
|
if (((DFCS_FLAT+DFCS_CHECKED) and uState)=DFCS_FLAT) then begin
|
||||||
else begin
|
// button up, flat, no special
|
||||||
If State = GTK_STATE_SELECTED then
|
Shadow:=GTK_SHADOW_NONE;
|
||||||
State := GTK_STATE_ACTIVE;
|
end else begin
|
||||||
aStyle := gtk_style_attach(gtk_style_ref(aStyle),aDC.Drawable);
|
// button up
|
||||||
|
Shadow:=GTK_SHADOW_OUT;
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
aDC:=TDeviceContext(DC);
|
||||||
|
DCOrigin:=GetDCOffset(aDC);
|
||||||
|
|
||||||
|
aStyle := GetStyle('button');
|
||||||
|
If aStyle = nil then
|
||||||
|
aStyle := Widget^.theStyle
|
||||||
|
else begin
|
||||||
|
If State = GTK_STATE_SELECTED then
|
||||||
|
State := GTK_STATE_ACTIVE;
|
||||||
|
aStyle := gtk_style_attach(gtk_style_ref(aStyle),aDC.Drawable);
|
||||||
|
end;
|
||||||
|
|
||||||
|
if aStyle<>nil then begin
|
||||||
If (DFCS_FLAT and uState)<>0 then
|
If (DFCS_FLAT and uState)<>0 then
|
||||||
gtk_paint_flat_box(aStyle,aDC.Drawable,
|
gtk_paint_flat_box(aStyle,aDC.Drawable,
|
||||||
State,
|
State,
|
||||||
@ -2350,6 +2351,7 @@ var
|
|||||||
'button',
|
'button',
|
||||||
Rect.Left+DCOrigin.X,Rect.Top+DCOrigin.Y,
|
Rect.Left+DCOrigin.X,Rect.Top+DCOrigin.Y,
|
||||||
Rect.Right-Rect.Left,Rect.Bottom-Rect.Top);
|
Rect.Right-Rect.Left,Rect.Bottom-Rect.Top);
|
||||||
|
end;
|
||||||
Result := True;
|
Result := True;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -2398,17 +2400,19 @@ var
|
|||||||
Widget := GetStyleWidget('default');
|
Widget := GetStyleWidget('default');
|
||||||
If (Widget <> nil) and (Style <> nil) then begin
|
If (Widget <> nil) and (Style <> nil) then begin
|
||||||
Widget^.Window := aDC.Drawable;
|
Widget^.Window := aDC.Drawable;
|
||||||
gtk_paint_check(Style,aDC.Drawable, State,
|
if Style<>nil then
|
||||||
Shadow, nil, Widget, 'checkbutton',
|
gtk_paint_check(Style,aDC.Drawable, State,
|
||||||
Rect.Left+DCOrigin.X,Rect.Top+DCOrigin.Y,
|
Shadow, nil, Widget, 'checkbutton',
|
||||||
Rect.Right-Rect.Left, Rect.Bottom-Rect.Top);
|
Rect.Left+DCOrigin.X,Rect.Top+DCOrigin.Y,
|
||||||
|
Rect.Right-Rect.Left, Rect.Bottom-Rect.Top);
|
||||||
Result := True;
|
Result := True;
|
||||||
end
|
end
|
||||||
else begin
|
else begin
|
||||||
{$IfNDef Win32}
|
{$IfNDef Win32}
|
||||||
gtk_draw_check(Style,aDC.Drawable, State,
|
if Style<>nil then
|
||||||
Shadow, Rect.Left+DCOrigin.X,Rect.Top+DCOrigin.Y,
|
gtk_draw_check(Style,aDC.Drawable, State,
|
||||||
Rect.Right-Rect.Left, Rect.Bottom-Rect.Top);
|
Shadow, Rect.Left+DCOrigin.X,Rect.Top+DCOrigin.Y,
|
||||||
|
Rect.Right-Rect.Left, Rect.Bottom-Rect.Top);
|
||||||
{$EndIf}
|
{$EndIf}
|
||||||
Result := True;
|
Result := True;
|
||||||
end;
|
end;
|
||||||
@ -3260,80 +3264,81 @@ var
|
|||||||
//RightBottomGC: PGdkGC;
|
//RightBottomGC: PGdkGC;
|
||||||
begin
|
begin
|
||||||
Result := IsValidDC(DC);
|
Result := IsValidDC(DC);
|
||||||
if Result then
|
if not Result then exit;
|
||||||
if FrameWidth=0 then exit;
|
if FrameWidth=0 then exit;
|
||||||
with TDeviceContext(DC) do
|
with TDeviceContext(DC) do
|
||||||
begin
|
begin
|
||||||
if GC = nil then begin
|
if GC = nil then begin
|
||||||
Result:= False;
|
Result:= False;
|
||||||
end
|
exit;
|
||||||
else begin
|
end;
|
||||||
Widget:=PGtkWidget(TDeviceContext(DC).Wnd);
|
Widget:=PGtkWidget(TDeviceContext(DC).Wnd);
|
||||||
ClientWidget:=GetFixedWidget(Widget);
|
ClientWidget:=GetFixedWidget(Widget);
|
||||||
if ClientWidget=nil then
|
if ClientWidget=nil then
|
||||||
ClientWidget:=Widget;
|
ClientWidget:=Widget;
|
||||||
AWindow:=GetControlWindow(ClientWidget);
|
AWindow:=GetControlWindow(ClientWidget);
|
||||||
if AWindow<>nil then begin
|
if AWindow=nil then begin
|
||||||
DCOrigin:=GetDCOffset(TDeviceContext(DC));
|
exit;
|
||||||
TheStyle:=GetStyle('button');
|
end;
|
||||||
Area.X:=ARect.Left+DCOrigin.X;
|
DCOrigin:=GetDCOffset(TDeviceContext(DC));
|
||||||
Area.Y:=ARect.Top+DCOrigin.Y;
|
TheStyle:=GetStyle('button');
|
||||||
Area.Width:=ARect.Right-ARect.Left;
|
Area.X:=ARect.Left+DCOrigin.X;
|
||||||
Area.Height:=ARect.Bottom-ARect.Top;
|
Area.Y:=ARect.Top+DCOrigin.Y;
|
||||||
{case Style of
|
Area.Width:=ARect.Right-ARect.Left;
|
||||||
bvLowered:
|
Area.Height:=ARect.Bottom-ARect.Top;
|
||||||
begin
|
{case Style of
|
||||||
LeftTopGC:=TheStyle^.light_gc[GTK_STATE_NORMAL];
|
bvLowered:
|
||||||
RightBottomGC:=TheStyle^.dark_gc[GTK_STATE_NORMAL];
|
begin
|
||||||
end;
|
LeftTopGC:=TheStyle^.light_gc[GTK_STATE_NORMAL];
|
||||||
bvRaised:
|
RightBottomGC:=TheStyle^.dark_gc[GTK_STATE_NORMAL];
|
||||||
begin
|
end;
|
||||||
LeftTopGC:=TheStyle^.dark_gc[GTK_STATE_NORMAL];
|
bvRaised:
|
||||||
RightBottomGC:=TheStyle^.light_gc[GTK_STATE_NORMAL];
|
begin
|
||||||
end;
|
LeftTopGC:=TheStyle^.dark_gc[GTK_STATE_NORMAL];
|
||||||
else
|
RightBottomGC:=TheStyle^.light_gc[GTK_STATE_NORMAL];
|
||||||
begin
|
end;
|
||||||
LeftTopGC:=TheStyle^.mid_gc[GTK_STATE_NORMAL];
|
else
|
||||||
RightBottomGC:=TheStyle^.mid_gc[GTK_STATE_NORMAL];
|
begin
|
||||||
end;
|
LeftTopGC:=TheStyle^.mid_gc[GTK_STATE_NORMAL];
|
||||||
end;
|
RightBottomGC:=TheStyle^.mid_gc[GTK_STATE_NORMAL];
|
||||||
gdk_gc_set_clip_rectangle (LeftTopGC, @Area);
|
|
||||||
gdk_gc_set_clip_rectangle (RightBottomGC, @Area);}
|
|
||||||
if FrameWidth=1 then
|
|
||||||
ShadowType:=GTKThinShadowType[Style]
|
|
||||||
else
|
|
||||||
ShadowType:=GTKStrongShadowType[Style];
|
|
||||||
|
|
||||||
for i:= 1 to FrameWidth do begin
|
|
||||||
{ // left edge
|
|
||||||
gdk_draw_line(Drawable, LeftTopGC,
|
|
||||||
ARect.Left+DCOrigin.X, ARect.Top+DCOrigin.Y,
|
|
||||||
ARect.Left+DCOrigin.X, ARect.Bottom+DCOrigin.Y);
|
|
||||||
// top edge
|
|
||||||
gdk_draw_line(Drawable, LeftTopGC,
|
|
||||||
ARect.Left+DCOrigin.X, ARect.Top+DCOrigin.Y,
|
|
||||||
ARect.Right+DCOrigin.X, ARect.Top+DCOrigin.Y);
|
|
||||||
// right edge
|
|
||||||
gdk_draw_line(Drawable, RightBottomGC,
|
|
||||||
ARect.Right+DCOrigin.X, ARect.Top+DCOrigin.Y,
|
|
||||||
ARect.Right+DCOrigin.X, ARect.Bottom+DCOrigin.Y);
|
|
||||||
// bottom edge
|
|
||||||
gdk_draw_line(Drawable, RightBottomGC,
|
|
||||||
ARect.Left+DCOrigin.X, ARect.Bottom+DCOrigin.Y,
|
|
||||||
ARect.Right+DCOrigin.X, ARect.Bottom+DCOrigin.Y);}
|
|
||||||
gtk_paint_shadow(TheStyle,
|
|
||||||
AWindow, GTK_STATE_NORMAL,
|
|
||||||
ShadowType,
|
|
||||||
@Area,
|
|
||||||
ClientWidget,
|
|
||||||
'button',
|
|
||||||
ARect.Left+DCOrigin.X, ARect.Top+DCOrigin.Y,
|
|
||||||
ARect.Right-ARect.Left, ARect.Bottom-ARect.Top);
|
|
||||||
InflateRect(ARect, -1, -1);
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
gdk_gc_set_clip_rectangle (LeftTopGC, @Area);
|
||||||
|
gdk_gc_set_clip_rectangle (RightBottomGC, @Area);}
|
||||||
|
if FrameWidth=1 then
|
||||||
|
ShadowType:=GTKThinShadowType[Style]
|
||||||
|
else
|
||||||
|
ShadowType:=GTKStrongShadowType[Style];
|
||||||
|
|
||||||
|
for i:= 1 to FrameWidth do begin
|
||||||
|
{ // left edge
|
||||||
|
gdk_draw_line(Drawable, LeftTopGC,
|
||||||
|
ARect.Left+DCOrigin.X, ARect.Top+DCOrigin.Y,
|
||||||
|
ARect.Left+DCOrigin.X, ARect.Bottom+DCOrigin.Y);
|
||||||
|
// top edge
|
||||||
|
gdk_draw_line(Drawable, LeftTopGC,
|
||||||
|
ARect.Left+DCOrigin.X, ARect.Top+DCOrigin.Y,
|
||||||
|
ARect.Right+DCOrigin.X, ARect.Top+DCOrigin.Y);
|
||||||
|
// right edge
|
||||||
|
gdk_draw_line(Drawable, RightBottomGC,
|
||||||
|
ARect.Right+DCOrigin.X, ARect.Top+DCOrigin.Y,
|
||||||
|
ARect.Right+DCOrigin.X, ARect.Bottom+DCOrigin.Y);
|
||||||
|
// bottom edge
|
||||||
|
gdk_draw_line(Drawable, RightBottomGC,
|
||||||
|
ARect.Left+DCOrigin.X, ARect.Bottom+DCOrigin.Y,
|
||||||
|
ARect.Right+DCOrigin.X, ARect.Bottom+DCOrigin.Y);}
|
||||||
|
if TheStyle<>nil then
|
||||||
|
gtk_paint_shadow(TheStyle,
|
||||||
|
AWindow, GTK_STATE_NORMAL,
|
||||||
|
ShadowType,
|
||||||
|
@Area,
|
||||||
|
ClientWidget,
|
||||||
|
'button',
|
||||||
|
ARect.Left+DCOrigin.X, ARect.Top+DCOrigin.Y,
|
||||||
|
ARect.Right-ARect.Left, ARect.Bottom-ARect.Top);
|
||||||
|
InflateRect(ARect, -1, -1);
|
||||||
|
end;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
@ -8291,6 +8296,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.246 2003/06/20 12:56:53 mattias
|
||||||
|
reduced paint messages on destroy
|
||||||
|
|
||||||
Revision 1.245 2003/06/19 09:26:58 mattias
|
Revision 1.245 2003/06/19 09:26:58 mattias
|
||||||
fixed changing unitname during update
|
fixed changing unitname during update
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user