mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 17:39:20 +02:00
MG: ShortCut support for buttons from Andrew
git-svn-id: trunk@1868 -
This commit is contained in:
parent
9e2bf68600
commit
b9d2d985de
@ -2907,6 +2907,16 @@ begin
|
||||
Result := False;
|
||||
end;
|
||||
|
||||
Function TgtkObject.CreateSystemFont : hFont;
|
||||
var
|
||||
GDIObj : PGDIObject;
|
||||
begin
|
||||
GDIObj := NewGDIObject(gdiFont);
|
||||
GDIObj^.GDIFontObject:= GetDefaultFont;
|
||||
Result := hFont(GDIObj);
|
||||
end;
|
||||
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Function: GetStockObject
|
||||
Params:
|
||||
@ -2947,24 +2957,28 @@ begin
|
||||
end;
|
||||
DEVICE_DEFAULT_FONT: // Device-dependent font.
|
||||
begin
|
||||
end;
|
||||
end; *)
|
||||
DEFAULT_GUI_FONT: // Default font for user interface objects such as menus and dialog boxes.
|
||||
begin
|
||||
Result := GetStockObject(SYSTEM_FONT);
|
||||
end;
|
||||
OEM_FIXED_FONT: // Original equipment manufacturer (OEM) dependent fixed-pitch (monospace) font.
|
||||
(* OEM_FIXED_FONT: // Original equipment manufacturer (OEM) dependent fixed-pitch (monospace) font.
|
||||
begin
|
||||
end;
|
||||
*)
|
||||
SYSTEM_FONT: // System font. By default, Windows uses the system font to draw menus, dialog box controls, and text. In Windows versions 3.0 and later, the system font is a proportionally spaced font; earlier versions of Windows used a monospace system font.
|
||||
begin
|
||||
If FStockSystemFont = 0 then
|
||||
FStockSystemFont := CreateSystemFont;
|
||||
Result := FStockSystemFont;
|
||||
end;
|
||||
SYSTEM_FIXED_FONT: // Fixed-pitch (monospace) system font used in Windows versions earlier than 3.0. This stock object is provided for compatibility with earlier versions of Windows.
|
||||
(* SYSTEM_FIXED_FONT: // Fixed-pitch (monospace) system font used in Windows versions earlier than 3.0. This stock object is provided for compatibility with earlier versions of Windows.
|
||||
begin
|
||||
end;
|
||||
DEFAULT_PALETTE: // Default palette. This palette consists of the static colors in the system palette.
|
||||
begin
|
||||
end;
|
||||
*)
|
||||
else
|
||||
*) else
|
||||
Assert(False, Format('Trace:TODO: [TgtkObject.GetStockObject] Implement value: %d', [Value]));
|
||||
end;
|
||||
Assert(False, Format('Trace:< [TgtkObject.GetStockObject] %d --> 0x%x', [Value, Result]));
|
||||
@ -6120,6 +6134,9 @@ end;
|
||||
{ =============================================================================
|
||||
|
||||
$Log$
|
||||
Revision 1.112 2002/08/27 06:40:51 lazarus
|
||||
MG: ShortCut support for buttons from Andrew
|
||||
|
||||
Revision 1.111 2002/08/24 12:55:00 lazarus
|
||||
MG: fixed mouse capturing, OI edit focus
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user