Changeset 457
- Timestamp:
- Feb 17, 2023, 2:10:24 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Components/ControlsUtility.pas
r15 r457 5 5 uses 6 6 Classes, StdCtrls, SysUtils, 7 ACLUtility, 7 ACLUtility, StringUtilsUnit, 8 8 {$ifdef win32} 9 9 ExtCtrls, Forms, Controls, ComCtrls, Windows, Messages, Graphics; … … 121 121 OverrideAppFontName: string; 122 122 OverrideAppFontSize: string; 123 WindowTextFont: string; 124 DefaultFontFromIni: cstring; 125 DotPos: integer; 123 126 begin 124 127 // For Marco! 125 128 OverrideAppFontName := GetEnv( 'ACL_OVERRIDE_FONT_NAME' ); 126 129 OverrideAppFontSize := GetEnv( 'ACL_OVERRIDE_FONT_SIZE' ); 130 131 // Use PM "Window Text" font if defined 132 if OverrideAppFontName = '' then 133 begin 134 PrfQueryProfileString( HINI_USERPROFILE, // OS2 INI 135 'PM_SystemFonts', // app 136 'WindowText', // key 137 '', // default 138 DefaultFontFromIni, 139 sizeof( DefaultFontFromIni )); 140 if DefaultFontFromIni <> '' then 141 begin 142 WindowTextFont := DefaultFontFromIni; 143 DotPos := Pos('.', WindowTextFont ); 144 if ( DotPos > 0 ) and ( DotPos < Length( WindowTextFont )) then 145 begin 146 OverrideAppFontSize := StrLeft( WindowTextFont, DotPos-1 ); 147 OverrideAppFontName := StrSubstringFrom( WindowTextFont, DotPos+1 ); 148 end; 149 end; 150 end; 127 151 128 152 try … … 219 243 const 220 244 EndLineStr = #13 +#10; 221 245 222 246 Procedure AddBoldedLine( RichEdit: TRichEdit; 223 247 BoldPart: string; … … 273 297 begin 274 298 ExpandedNodeList.Add( Path + Node.Text ); 275 299 276 300 SubNode := Node.getFirstChild; 277 301 while SubNode <> nil do … … 754 778 end; 755 779 756 // Validate component memory and it 's owned components780 // Validate component memory and its owned components 757 781 procedure ValidateComponent( Component: TComponent ); 758 782 var
Note:
See TracChangeset
for help on using the changeset viewer.