- Timestamp:
- Dec 23, 2023, 8:59:07 PM (11 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Help.pas
r502 r503 5 5 6 6 uses 7 Protocol, ScreenTools, BaseWin, StringTables, Math, LCLIntf, LCLType, 8 Messages,SysUtils, Classes, ButtonB, PVSB, Types, Generics.Collections, IsoEngine,7 Protocol, ScreenTools, BaseWin, StringTables, Math, LCLIntf, LCLType, Messages, 8 SysUtils, Classes, ButtonB, PVSB, Types, Generics.Collections, IsoEngine, 9 9 {$IFDEF DPI}Dpi.Graphics, Dpi.Controls, Dpi.Forms, Dpi.ExtCtrls, Dpi.Common, 10 10 System.UITypes{$ELSE} … … 858 858 x0[I] := x0[I] + 8; 859 859 end; 860 Self.Line(OffScreen.Canvas, I, False) 860 Self.Line(OffScreen.Canvas, I, False); 861 861 end; 862 862 end; … … 1113 1113 Delete(S, 1, P) 1114 1114 else 1115 Delete(S, 1, P - 1) 1115 Delete(S, 1, P - 1); 1116 1116 end; 1117 1117 '!': // highlighted … … 1146 1146 repeat 1147 1147 repeat 1148 Inc(P) 1148 Inc(P); 1149 1149 until (P > Length(S)) or (S[P] = ' ') or (S[P] = '\'); 1150 1150 if (BiColorTextWidth(OffScreen.Canvas, Copy(S, 1, P - 1)) <= … … 1211 1211 MainText[Count - 1] := Format(HelpText.Lookup('REQUIRED'), 1212 1212 [MainText[Count - 1]]); 1213 end 1213 end; 1214 1214 end; 1215 1215 … … 1253 1253 I: Integer; 1254 1254 S: string; 1255 sr: TSearchRec;1255 SearchRec: TSearchRec; 1256 1256 List, Plus: TStringList; 1257 1257 begin 1258 1258 List := TStringList.Create; 1259 1259 Plus := TStringList.Create; 1260 if FindFirst(GetGraphicsDir + DirectorySeparator + '*.credits.txt', $27, sr) = 0 then1260 if FindFirst(GetGraphicsDir + DirectorySeparator + '*.credits.txt', $27, SearchRec) = 0 then 1261 1261 repeat 1262 Plus.LoadFromFile(GetGraphicsDir + DirectorySeparator + sr.Name);1262 Plus.LoadFromFile(GetGraphicsDir + DirectorySeparator + SearchRec.Name); 1263 1263 List.AddStrings(Plus); 1264 until FindNext( sr) <> 0;1265 FindClose( sr);1264 until FindNext(SearchRec) <> 0; 1265 FindClose(SearchRec); 1266 1266 FreeAndNil(Plus); 1267 1267 … … 1959 1959 if (Sel + i0 >= MainText.Count) or (Sel >= 0) and 1960 1960 (THelpLineInfo(MainText.Objects[Sel + i0]).Category = hkNoLink) and 1961 (THelpLineInfo(MainText.Objects[Sel + i0]).Index = 0) then1961 (THelpLineInfo(MainText.Objects[Sel + i0]).Index = 0) then 1962 1962 Sel := -1; 1963 1963 if Sel <> Sel0 then … … 2166 2166 SearchResult.AddLine(S, pkNormal, 0, hkImp, I, True); 2167 2167 Include(mIMPHELP, I); 2168 end 2168 end; 2169 2169 end; 2170 2170 for I := 0 to nGov - 1 do … … 2187 2187 begin 2188 2188 if (I >= 0) and ((I <> PrevIndex) or (H <> PrevHandle)) and 2189 not (I in mADVHELP) then2189 not (I in mADVHELP) then 2190 2190 begin 2191 2191 S := Phrases.Lookup('ADVANCES', I); … … 2200 2200 begin 2201 2201 if (I >= 0) and ((I <> PrevIndex) or (H <> PrevHandle)) and 2202 not (I in mIMPHELP) then2202 not (I in mIMPHELP) then 2203 2203 begin 2204 2204 S := Phrases.Lookup('IMPROVEMENTS', I); … … 2219 2219 begin 2220 2220 if (I >= 0) and ((I <> PrevIndex) or (H <> PrevHandle)) and 2221 not (I in mFEATUREHELP) then2221 not (I in mFEATUREHELP) then 2222 2222 begin 2223 2223 S := Phrases.Lookup('FEATURES', I); … … 2271 2271 while BiColorTextWidth(OffScreen.Canvas, SearchResult[I]) > 2272 2272 RightMargin - 32 do 2273 SearchResult[I] := Copy(SearchResult[I], 1, Length(SearchResult[I]) - 1) 2273 SearchResult[I] := Copy(SearchResult[I], 1, Length(SearchResult[I]) - 1); 2274 2274 end; 2275 2275 end; -
trunk/Packages/DpiControls/Dpi.StdCtrls.pas
r502 r503 93 93 { TButton } 94 94 95 TButton = class(T Control)95 TButton = class(TWinControl) 96 96 private 97 97 protected 98 function GetNative Control: Controls.TControl; override;98 function GetNativeWinControl: Controls.TWinControl; override; 99 99 public 100 100 NativeButton: StdCtrls.TButton; … … 155 155 { TScrollBar } 156 156 157 TScrollBar = class(T Control)157 TScrollBar = class(TWinControl) 158 158 private 159 159 function GetKind: TScrollBarKind; … … 170 170 procedure SetPosition(AValue: Integer); 171 171 protected 172 function GetNative Control: Controls.TControl; override;172 function GetNativeWinControl: Controls.TWinControl; override; 173 173 function GetNativeScrollBar: StdCtrls.TScrollBar; virtual; 174 174 public … … 178 178 published 179 179 property PageSize: Integer read GetPageSize write SetPageSize; 180 property Min: Integer read GetMin write SetMin ;181 property Max: Integer read GetMax write SetMax ;182 property Position: Integer read GetPosition write SetPosition ;183 property Kind: TScrollBarKind read GetKind write SetKind ;180 property Min: Integer read GetMin write SetMin default 0; 181 property Max: Integer read GetMax write SetMax default 100; 182 property Position: Integer read GetPosition write SetPosition default 0; 183 property Kind: TScrollBarKind read GetKind write SetKind default sbHorizontal; 184 184 property OnChange: TNotifyEvent read GetOnChange write SetOnChange; 185 185 property Visible; … … 197 197 begin 198 198 RegisterComponents(DpiControlsComponentPaletteName, [TEdit, TButton, 199 TScrollBar ]);199 TScrollBar, TListBox, TCheckBox, TComboBox]); 200 200 end; 201 201 … … 377 377 { TButton } 378 378 379 function TButton.GetNative Control: Controls.TControl;379 function TButton.GetNativeWinControl: Controls.TWinControl; 380 380 begin 381 381 if not Assigned(NativeButton) then NativeButton := StdCtrls.TButton.Create(nil); … … 451 451 end; 452 452 453 function TScrollBar.GetNative Control: Controls.TControl;453 function TScrollBar.GetNativeWinControl: Controls.TWinControl; 454 454 begin 455 455 Result := GetNativeScrollBar;
Note:
See TracChangeset
for help on using the changeset viewer.