mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 21:00:23 +02:00
fixed some bugs by Andreas
git-svn-id: trunk@4793 -
This commit is contained in:
parent
16f0cc169f
commit
9b34313f6d
@ -188,7 +188,7 @@ const
|
|||||||
TB_GETHOTITEM = WM_USER + 71;
|
TB_GETHOTITEM = WM_USER + 71;
|
||||||
TB_SETHOTITEM = WM_USER + 72;
|
TB_SETHOTITEM = WM_USER + 72;
|
||||||
|
|
||||||
TB_ADDSTRINGW = WM_USER = 77;
|
TB_ADDSTRINGW = WM_USER + 77;
|
||||||
|
|
||||||
|
|
||||||
TB_INSERTBUTTON = TB_INSERTBUTTONA;
|
TB_INSERTBUTTON = TB_INSERTBUTTONA;
|
||||||
|
@ -618,7 +618,7 @@ begin
|
|||||||
If Bottom < Top then begin
|
If Bottom < Top then begin
|
||||||
Tmp := Bottom;
|
Tmp := Bottom;
|
||||||
Bottom := Top;
|
Bottom := Top;
|
||||||
Top := Bottom;
|
Top := Tmp;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Result.X := Left + (Right - Left) div 2;
|
Result.X := Left + (Right - Left) div 2;
|
||||||
@ -1085,6 +1085,9 @@ end.
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.4 2003/11/10 19:05:44 mattias
|
||||||
|
fixed some bugs by Andreas
|
||||||
|
|
||||||
Revision 1.3 2003/08/18 19:24:18 mattias
|
Revision 1.3 2003/08/18 19:24:18 mattias
|
||||||
fixed TCanvas.Pie
|
fixed TCanvas.Pie
|
||||||
|
|
||||||
|
@ -192,7 +192,7 @@ begin
|
|||||||
NewOwner:=fNotebook.Owner;
|
NewOwner:=fNotebook.Owner;
|
||||||
if NewOwner=nil then
|
if NewOwner=nil then
|
||||||
NewOwner:=fNotebook;
|
NewOwner:=fNotebook;
|
||||||
tmpPage := fNotebook.PageClass.Create(fNotebook.Owner);
|
tmpPage := fNotebook.PageClass.Create(NewOwner);
|
||||||
with tmpPage do
|
with tmpPage do
|
||||||
begin
|
begin
|
||||||
Caption := S;
|
Caption := S;
|
||||||
@ -260,6 +260,7 @@ var
|
|||||||
NewControlIndex, NewPageIndex: integer;
|
NewControlIndex, NewPageIndex: integer;
|
||||||
begin
|
begin
|
||||||
if CurIndex=NewIndex then exit;
|
if CurIndex=NewIndex then exit;
|
||||||
|
NewPageIndex:=NewIndex;
|
||||||
|
|
||||||
APage:=TCustomPage(fPageList[CurIndex]);
|
APage:=TCustomPage(fPageList[CurIndex]);
|
||||||
|
|
||||||
@ -778,6 +779,9 @@ end;}
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.37 2003/11/10 19:05:44 mattias
|
||||||
|
fixed some bugs by Andreas
|
||||||
|
|
||||||
Revision 1.36 2003/09/20 15:24:54 mattias
|
Revision 1.36 2003/09/20 15:24:54 mattias
|
||||||
implemented TPageControl and TTabSheet
|
implemented TPageControl and TTabSheet
|
||||||
|
|
||||||
|
@ -422,7 +422,7 @@ procedure TScreen.UpdateLastActive;
|
|||||||
if Assigned(FOnActiveControlChange) then FOnActiveControlChange(Self);
|
if Assigned(FOnActiveControlChange) then FOnActiveControlChange(Self);
|
||||||
i:=GetHandlerCount(snActiveControlChanged);
|
i:=GetHandlerCount(snActiveControlChanged);
|
||||||
while GetNextHandlerIndex(snActiveControlChanged,i) do begin
|
while GetNextHandlerIndex(snActiveControlChanged,i) do begin
|
||||||
Handler:=TScreenFormEvent(FHandlers[snActiveControlChanged][i]);
|
Handler:=TScreenControlEvent(FHandlers[snActiveControlChanged][i]);
|
||||||
Handler(Self,FLastActiveControl);
|
Handler(Self,FLastActiveControl);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
@ -62,6 +62,8 @@ End;
|
|||||||
-----------------------------------------------------------------------------}
|
-----------------------------------------------------------------------------}
|
||||||
Function PropEnumProc(Window: Hwnd; Str: PChar; Data: Handle): LongBool; StdCall;
|
Function PropEnumProc(Window: Hwnd; Str: PChar; Data: Handle): LongBool; StdCall;
|
||||||
Begin
|
Begin
|
||||||
|
Result:=false;
|
||||||
|
if (DWORD(Str) and $FFFF0000) = 0 then Exit; // global atom handle
|
||||||
Assert(False, 'Trace:PropEnumProc - Start');
|
Assert(False, 'Trace:PropEnumProc - Start');
|
||||||
Assert(False, Format('Trace:PropEnumProc - Property %S (with value 0x%X) from window 0x%X removed', [String(Str), Data, Window]));
|
Assert(False, Format('Trace:PropEnumProc - Property %S (with value 0x%X) from window 0x%X removed', [String(Str), Data, Window]));
|
||||||
RemoveProp(Window, Str);
|
RemoveProp(Window, Str);
|
||||||
@ -884,6 +886,9 @@ end;
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.68 2003/11/10 19:05:44 mattias
|
||||||
|
fixed some bugs by Andreas
|
||||||
|
|
||||||
Revision 1.67 2003/11/08 17:41:03 micha
|
Revision 1.67 2003/11/08 17:41:03 micha
|
||||||
compiler warning cleanups
|
compiler warning cleanups
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user