Changeset 317 for trunk/Packages/CevoComponents
- Timestamp:
- Mar 19, 2021, 9:59:02 AM (4 years ago)
- Location:
- trunk/Packages/CevoComponents
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/BaseWin.pas
r290 r317 153 153 begin 154 154 if FWindowMode = wmSubmodal then 155 Close 155 Close; 156 156 end; 157 157 … … 316 316 else 317 317 MainTexture := MainTexture; 318 MainTexture := MainTexture 318 MainTexture := MainTexture; 319 319 end; 320 320 Canvas.Font.Assign(UniFont[ftCaption]); … … 330 330 begin 331 331 FrameTop := 0; 332 FrameBottom := ClientHeight 332 FrameBottom := ClientHeight; 333 333 end 334 334 else … … 338 338 FrameBottom := ClientHeight - (WideFrame - NarrowFrame) 339 339 else 340 FrameBottom := ClientHeight 340 FrameBottom := ClientHeight; 341 341 end; 342 342 Fill(Canvas, 3, InnerBottom + 1, ClientWidth - 6, ClientHeight - InnerBottom - … … 386 386 MoveTo(ClientWidth - 3 - ModalFrameIndent, 3); 387 387 LineTo(ClientWidth - 3 - ModalFrameIndent, TitleHeight); 388 end 388 end; 389 389 end 390 390 else … … 441 441 LineTo(ClientWidth - CaptionLeft - 2, FrameBottom - 2); 442 442 end; 443 end 443 end; 444 444 end; 445 445 RisedTextOut(Canvas, Cut - 1, 7, Caption); -
trunk/Packages/CevoComponents/ScreenTools.pas
r316 r317 92 92 procedure VLightGradient(ca: TCanvas; x, y, Height, Color: integer); 93 93 procedure VDarkGradient(ca: TCanvas; x, y, Height, Kind: integer); 94 procedure UnderlinedTitleValue(Canvas: TCanvas; Title, Value: string; X, Y, Width: Integer); 94 95 procedure NumberBar(dst: TBitmap; x, y: integer; Cap: string; val: integer; 95 96 const T: TTexture); … … 1313 1314 Gradient(ca, x, y, 1, 0, 0, Height, 1314 1315 HGrSystem.Data.Canvas.Pixels[187, 137 + Kind], Brightness); 1316 end; 1317 1318 procedure UnderlinedTitleValue(Canvas: TCanvas; Title, Value: string; X, Y, Width: Integer); 1319 begin 1320 DLine(Canvas, X, X + Width, Y + 19, MainTexture.clBevelLight, MainTexture.clBevelShade); 1321 RisedTextOut(Canvas, X, Y, Title); 1322 RisedTextOut(Canvas, X + Width - BiColorTextWidth(Canvas, Value), Y, Value); 1315 1323 end; 1316 1324 -
trunk/Packages/CevoComponents/Sound.pas
r290 r317 11 11 type 12 12 TPlayStyle = (psAsync, psSync); 13 TSoundMode = (smOff, smOn, smOnAlt); 13 14 14 15 { TSoundPlayer } … … 50 51 procedure PreparePlay(Item: string; Index: Integer = -1); 51 52 52 const53 // sound modes54 smOff = 0;55 smOn = 1;56 smOnAlt = 2;57 58 53 var 59 54 Sounds: TStringTable; 60 SoundMode: Integer;55 SoundMode: TSoundMode; 61 56 SoundPlayer: TSoundPlayer; 62 57 SoundList: TFPGObjectList<TSound>;
Note:
See TracChangeset
for help on using the changeset viewer.