Changeset 447 for trunk/Packages/CevoComponents/BaseWin.pas
- Timestamp:
- May 19, 2022, 10:39:34 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/BaseWin.pas
r442 r447 23 23 procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); 24 24 procedure FormDeactivate(Sender: TObject); 25 procedure SmartUpdateContent(ImmUpdate: Boolean = false);25 procedure SmartUpdateContent(ImmUpdate: Boolean = False); 26 26 procedure StayOnTop_Workaround; 27 27 protected … … 50 50 CaptionRight: Integer; 51 51 InnerWidth: Integer; 52 InnerHeight: integer;52 InnerHeight: Integer; 53 53 WideBottom: Boolean; 54 54 FullCaption: Boolean; … … 180 180 UserLeft := Left; 181 181 UserTop := Top; 182 Visible := false;182 Visible := False; 183 183 FWindowMode := NewMode; 184 184 ShowModal; … … 186 186 else if forceclose then 187 187 begin // make modal 188 Visible := false;188 Visible := False; 189 189 FWindowMode := NewMode; 190 190 Left := UserLeft; … … 272 272 procedure TFramedDlg.SmartInvalidate; 273 273 var 274 i, BottomFrame: integer;274 I, BottomFrame: Integer; 275 275 r0, r1: HRgn; 276 276 begin … … 281 281 r0 := CreateRectRgn(SideFrame, TitleHeight, ClientWidth - SideFrame, 282 282 ClientHeight - BottomFrame); 283 for i:= 0 to ControlCount - 1 do284 if not(Controls[ i] is TArea) and Controls[i].Visible then283 for I := 0 to ControlCount - 1 do 284 if not(Controls[I] is TArea) and Controls[I].Visible then 285 285 begin 286 with Controls[ i].BoundsRect do286 with Controls[I].BoundsRect do 287 287 r1 := CreateRectRgn(Left, Top, Right, Bottom); 288 288 CombineRgn(r0, r0, r1, RGN_DIFF); … … 295 295 procedure TFramedDlg.VPaint; 296 296 297 procedure CornerFrame(x0, y0, x1, y1: integer);297 procedure CornerFrame(x0, y0, x1, y1: Integer); 298 298 begin 299 299 Frame(Canvas, x0 + 1, y0 + 1, x1 - 2, y1 - 2, MainTexture.ColorBevelLight, … … 308 308 309 309 var 310 i, l, FrameTop, FrameBottom, InnerBottom, Cut, xTexOffset,311 yTexOffset: integer;310 I, L, FrameTop, FrameBottom, InnerBottom, Cut, xTexOffset, 311 yTexOffset: Integer; 312 312 R: TRect; 313 313 begin … … 321 321 end; 322 322 Canvas.Font.Assign(UniFont[ftCaption]); 323 l:= BiColorTextWidth(Canvas, Caption);324 Cut := (ClientWidth - l) div 2;323 L := BiColorTextWidth(Canvas, Caption); 324 Cut := (ClientWidth - L) div 2; 325 325 xTexOffset := (Maintexture.Width - ClientWidth) div 2; 326 326 yTexOffset := (Maintexture.Height - ClientHeight) div 2; … … 446 446 RisedTextOut(Canvas, Cut - 1, 7, Caption); 447 447 448 for i:= 0 to ControlCount - 1 do449 if Controls[ i].Visible and (Controls[i] is TButtonBase) then448 for I := 0 to ControlCount - 1 do 449 if Controls[I].Visible and (Controls[I] is TButtonBase) then 450 450 begin 451 R := Controls[ i].BoundsRect;451 R := Controls[I].BoundsRect; 452 452 if (R.Bottom <= TitleHeight) or (R.Top >= InnerBottom) then 453 453 BtnFrame(Canvas, R, MainTexture); … … 463 463 begin 464 464 if FullCaption then 465 exit;465 Exit; 466 466 r0 := CreateRectRgn(0, 0, ClientWidth, ClientHeight); 467 467 r1 := CreateRectRgn(0, 0, CaptionLeft, TitleHeight - NarrowFrame);
Note:
See TracChangeset
for help on using the changeset viewer.