mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 11:39:19 +02:00
remove old obsolete/commented toolbutton code
rename lazarusform classname to window, because we use it for panels, notebookpages, etc too git-svn-id: trunk@5592 -
This commit is contained in:
parent
3dc4644c7c
commit
3c7d11944b
@ -1183,21 +1183,6 @@ begin
|
|||||||
Result := CallDefaultWindowProc(Window, Msg, WParam, LParam);
|
Result := CallDefaultWindowProc(Window, Msg, WParam, LParam);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
|
||||||
Function: ToolBtnWindowProc
|
|
||||||
Params: Window_hwnd - The window that receives a message for the window
|
|
||||||
Msg - The message received
|
|
||||||
WParam - Word parameter
|
|
||||||
LParam - Long-integer parameter
|
|
||||||
Returns: non-zero long-integer
|
|
||||||
|
|
||||||
Handles the messages sent to the toolbar button by Windows
|
|
||||||
------------------------------------------------------------------------------}
|
|
||||||
Function ToolBtnWindowProc(window_hwnd : hwnd; msg : DWORD; wParam : WPARAM; lParam : LPARAM) : LRESULT; stdcall;
|
|
||||||
begin
|
|
||||||
Result := Windows.DefWindowProc(window_hwnd, Msg, WParam, LParam);
|
|
||||||
end;
|
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
Procedure: TimerCallBackProc
|
Procedure: TimerCallBackProc
|
||||||
Params: window_hnd - handle of window for timer message, not set in this implementation
|
Params: window_hnd - handle of window for timer message, not set in this implementation
|
||||||
@ -1253,6 +1238,10 @@ end;
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.120 2004/06/20 20:36:55 micha
|
||||||
|
remove old obsolete/commented toolbutton code
|
||||||
|
rename lazarusform classname to window, because we use it for panels, notebookpages, etc too
|
||||||
|
|
||||||
Revision 1.119 2004/06/20 13:58:15 micha
|
Revision 1.119 2004/06/20 13:58:15 micha
|
||||||
fix combobox edit being gray
|
fix combobox edit being gray
|
||||||
|
|
||||||
|
@ -148,7 +148,6 @@ Type
|
|||||||
Desc: PRawImageDescription);
|
Desc: PRawImageDescription);
|
||||||
|
|
||||||
Function WinRegister: Boolean;
|
Function WinRegister: Boolean;
|
||||||
// Function ToolBtnWinRegister: Boolean;
|
|
||||||
Procedure SetOwner(Window: HWND; Owner: TObject);
|
Procedure SetOwner(Window: HWND; Owner: TObject);
|
||||||
Procedure PaintPixmap(Surface: TObject; PixmapData: Pointer);
|
Procedure PaintPixmap(Surface: TObject; PixmapData: Pointer);
|
||||||
Procedure NormalizeIconName(Var IconName: String);
|
Procedure NormalizeIconName(Var IconName: String);
|
||||||
@ -249,8 +248,7 @@ type
|
|||||||
|
|
||||||
const
|
const
|
||||||
BOOL_RESULT: Array[Boolean] Of String = ('False', 'True');
|
BOOL_RESULT: Array[Boolean] Of String = ('False', 'True');
|
||||||
ClsName : array[0..20] of char = 'LazarusForm'#0;
|
ClsName : array[0..6] of char = 'Window'#0;
|
||||||
ToolBtnClsName : array[0..20] of char = 'ToolbarButton'#0;
|
|
||||||
|
|
||||||
var
|
var
|
||||||
OnClipBoardRequest: TClipboardRequestEvent;
|
OnClipBoardRequest: TClipboardRequestEvent;
|
||||||
@ -274,6 +272,10 @@ End.
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.87 2004/06/20 20:36:55 micha
|
||||||
|
remove old obsolete/commented toolbutton code
|
||||||
|
rename lazarusform classname to window, because we use it for panels, notebookpages, etc too
|
||||||
|
|
||||||
Revision 1.86 2004/06/18 20:47:34 vincents
|
Revision 1.86 2004/06/18 20:47:34 vincents
|
||||||
fixed pasting from clipboard
|
fixed pasting from clipboard
|
||||||
|
|
||||||
|
@ -109,7 +109,6 @@ Begin
|
|||||||
DestroyWindow(FAppHandle);
|
DestroyWindow(FAppHandle);
|
||||||
|
|
||||||
Windows.UnregisterClass(@ClsName, System.HInstance);
|
Windows.UnregisterClass(@ClsName, System.HInstance);
|
||||||
// Windows.UnregisterClass(@ToolBtnClsName, System.HInstance);
|
|
||||||
|
|
||||||
if FThemeLibrary <> 0 then
|
if FThemeLibrary <> 0 then
|
||||||
FreeLibrary(FThemeLibrary);
|
FreeLibrary(FThemeLibrary);
|
||||||
@ -136,13 +135,7 @@ Begin
|
|||||||
writeln('Trace:Win32Object.Init - Register Failed');
|
writeln('Trace:Win32Object.Init - Register Failed');
|
||||||
Exit;
|
Exit;
|
||||||
End;
|
End;
|
||||||
{
|
|
||||||
If Not ToolBtnWinRegister then
|
|
||||||
Begin
|
|
||||||
Assert(False, 'Trace:Win32Object.Init - Toolbar button Register Failed');
|
|
||||||
Exit;
|
|
||||||
End;
|
|
||||||
}
|
|
||||||
//Init stock objects;
|
//Init stock objects;
|
||||||
LogBrush.lbStyle := BS_NULL;
|
LogBrush.lbStyle := BS_NULL;
|
||||||
FStockNullBrush := CreateBrushIndirect(LogBrush);
|
FStockNullBrush := CreateBrushIndirect(LogBrush);
|
||||||
@ -1306,26 +1299,6 @@ Begin
|
|||||||
Assert(False, 'Trace:WinRegister - Exit');
|
Assert(False, 'Trace:WinRegister - Exit');
|
||||||
End;
|
End;
|
||||||
|
|
||||||
(*
|
|
||||||
Function TWin32WidgetSet.ToolBtnWinRegister: boolean;
|
|
||||||
var WinClass: WndClass;
|
|
||||||
begin
|
|
||||||
with WinClass do begin
|
|
||||||
Style := 0{CS_HRedraw or CS_VRedraw};
|
|
||||||
lpfnWndProc := @ToolBtnWindowProc;
|
|
||||||
cbClsExtra := 40;
|
|
||||||
cbWndExtra := 40;
|
|
||||||
hInstance := System.HInstance;
|
|
||||||
hIcon := 0{LoadIcon(0, IDI_Application)};
|
|
||||||
hCursor := 0{LoadCursor(0, IDC_Arrow)};
|
|
||||||
hbrBackground := GetStockObject(WHITE_BRUSH);
|
|
||||||
lpszMenuName := nil;
|
|
||||||
lpszClassName := @ToolBtnClsName;
|
|
||||||
end;
|
|
||||||
Result := Windows.RegisterClass(@WinClass) <> 0;
|
|
||||||
end;
|
|
||||||
*)
|
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
Method: TWin32WidgetSet.UpdateThemesActive
|
Method: TWin32WidgetSet.UpdateThemesActive
|
||||||
Params: None
|
Params: None
|
||||||
@ -2452,14 +2425,6 @@ Begin
|
|||||||
pClassName := TOOLBARCLASSNAME;
|
pClassName := TOOLBARCLASSNAME;
|
||||||
Flags := Flags OR CCS_ADJUSTABLE;
|
Flags := Flags OR CCS_ADJUSTABLE;
|
||||||
End;
|
End;
|
||||||
{
|
|
||||||
csToolButton:
|
|
||||||
Begin
|
|
||||||
pClassName := ToolBtnClsName;
|
|
||||||
Flags := 0;
|
|
||||||
SubClassWndProc := nil;
|
|
||||||
End;
|
|
||||||
}
|
|
||||||
// TCustomPage - Notebook page
|
// TCustomPage - Notebook page
|
||||||
csPage:
|
csPage:
|
||||||
Begin
|
Begin
|
||||||
@ -3281,6 +3246,10 @@ End;
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.213 2004/06/20 20:36:55 micha
|
||||||
|
remove old obsolete/commented toolbutton code
|
||||||
|
rename lazarusform classname to window, because we use it for panels, notebookpages, etc too
|
||||||
|
|
||||||
Revision 1.212 2004/06/20 13:58:15 micha
|
Revision 1.212 2004/06/20 13:58:15 micha
|
||||||
fix combobox edit being gray
|
fix combobox edit being gray
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user