Changeset 352 for trunk/Packages/CevoComponents/BaseWin.pas
- Timestamp:
- Apr 6, 2021, 10:16:55 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/BaseWin.pas
r340 r352 292 292 procedure CornerFrame(x0, y0, x1, y1: integer); 293 293 begin 294 Frame(Canvas, x0 + 1, y0 + 1, x1 - 2, y1 - 2, MainTexture. clBevelLight,295 MainTexture. clBevelShade);296 Frame(Canvas, x0 + 2, y0 + 2, x1 - 3, y1 - 3, MainTexture. clBevelLight,297 MainTexture. clBevelShade);294 Frame(Canvas, x0 + 1, y0 + 1, x1 - 2, y1 - 2, MainTexture.ColorBevelLight, 295 MainTexture.ColorBevelShade); 296 Frame(Canvas, x0 + 2, y0 + 2, x1 - 3, y1 - 3, MainTexture.ColorBevelLight, 297 MainTexture.ColorBevelShade); 298 298 Corner(Canvas, x0 + 1, y0 + 1, 0, MainTexture); 299 299 Corner(Canvas, x1 - 9, y0 + 1, 1, MainTexture); … … 318 318 l := BiColorTextWidth(Canvas, Caption); 319 319 Cut := (ClientWidth - l) div 2; 320 xTexOffset := ( wMaintexture- ClientWidth) div 2;321 yTexOffset := ( hMaintexture- ClientHeight) div 2;320 xTexOffset := (Maintexture.Width - ClientWidth) div 2; 321 yTexOffset := (Maintexture.Height - ClientHeight) div 2; 322 322 if WideBottom then 323 323 InnerBottom := ClientHeight - WideFrame … … 345 345 Frame(Canvas, 0, FrameTop, ClientWidth - 1, FrameBottom - 1, 0, 0); 346 346 Frame(Canvas, SideFrame - 1, TitleHeight - 1, ClientWidth - SideFrame, 347 InnerBottom, MainTexture. clBevelShade, MainTexture.clBevelLight);347 InnerBottom, MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 348 348 // RFrame(Canvas,SideFrame-2,TitleHeight-2,ClientWidth-SideFrame+1, 349 // InnerBottom+1,MainTexture. clBevelShade,MainTexture.clBevelLight);349 // InnerBottom+1,MainTexture.ColorBevelShade,MainTexture.ColorBevelLight); 350 350 if FullCaption then 351 351 begin … … 367 367 4, xTexOffset, yTexOffset); 368 368 CornerFrame(0, FrameTop, ClientWidth, FrameBottom); 369 Pen.Color := MainTexture. clBevelShade;369 Pen.Color := MainTexture.ColorBevelShade; 370 370 MoveTo(3 + ModalFrameIndent, 2); 371 371 LineTo(3 + ModalFrameIndent, TitleHeight); 372 Pen.Color := MainTexture. clBevelShade;372 Pen.Color := MainTexture.ColorBevelShade; 373 373 MoveTo(4 + ModalFrameIndent, TitleHeight - 1); 374 374 LineTo(ClientWidth - 4 - ModalFrameIndent, TitleHeight - 1); 375 375 LineTo(ClientWidth - 4 - ModalFrameIndent, 1); 376 Pen.Color := MainTexture. clBevelLight;376 Pen.Color := MainTexture.ColorBevelLight; 377 377 MoveTo(ClientWidth - 5 - ModalFrameIndent, 2); 378 378 LineTo(4 + ModalFrameIndent, 2); … … 380 380 MoveTo(ClientWidth - 4 - ModalFrameIndent, 1); 381 381 LineTo(3 + ModalFrameIndent, 1); 382 Pen.Color := MainTexture. clBevelLight;382 Pen.Color := MainTexture.ColorBevelLight; 383 383 MoveTo(ClientWidth - 3 - ModalFrameIndent, 3); 384 384 LineTo(ClientWidth - 3 - ModalFrameIndent, TitleHeight); … … 397 397 398 398 Frame(Canvas, CaptionLeft + 1, 0 + 1, ClientWidth - CaptionLeft - 2, 399 TitleHeight - 1, MainTexture. clBevelLight, MainTexture.clBevelShade);399 TitleHeight - 1, MainTexture.ColorBevelLight, MainTexture.ColorBevelShade); 400 400 Frame(Canvas, CaptionLeft + 2, 0 + 2, ClientWidth - CaptionLeft - 3, 401 TitleHeight - 1, MainTexture. clBevelLight, MainTexture.clBevelShade);401 TitleHeight - 1, MainTexture.ColorBevelLight, MainTexture.ColorBevelShade); 402 402 Corner(Canvas, CaptionLeft + 1, 0 + 1, 0, MainTexture); 403 403 Corner(Canvas, ClientWidth - CaptionLeft - 9, 0 + 1, 1, MainTexture); … … 405 405 with Canvas do 406 406 begin 407 Pen.Color := MainTexture. clBevelShade;407 Pen.Color := MainTexture.ColorBevelShade; 408 408 MoveTo(CaptionLeft + 1, FrameTop + 2); 409 409 LineTo(CaptionLeft + 1, TitleHeight); 410 Pen.Color := MainTexture. clBevelLight;410 Pen.Color := MainTexture.ColorBevelLight; 411 411 MoveTo(ClientWidth - CaptionLeft - 2, FrameTop + 2); 412 412 LineTo(ClientWidth - CaptionLeft - 2, TitleHeight); … … 421 421 Frame(Canvas, CaptionLeft + 1, ClientHeight - WideFrame - 1 + 1, 422 422 ClientWidth - CaptionLeft - 2, ClientHeight - 2, 423 MainTexture. clBevelLight, MainTexture.clBevelShade);423 MainTexture.ColorBevelLight, MainTexture.ColorBevelShade); 424 424 Frame(Canvas, CaptionLeft + 2, ClientHeight - WideFrame - 1 + 1, 425 425 ClientWidth - CaptionLeft - 3, ClientHeight - 3, 426 MainTexture. clBevelLight, MainTexture.clBevelShade);426 MainTexture.ColorBevelLight, MainTexture.ColorBevelShade); 427 427 Corner(Canvas, CaptionLeft + 1, ClientHeight - 9, 2, MainTexture); 428 428 Corner(Canvas, ClientWidth - CaptionLeft - 9, ClientHeight - 9, 3, … … 431 431 with Canvas do 432 432 begin 433 Pen.Color := MainTexture. clBevelShade;433 Pen.Color := MainTexture.ColorBevelShade; 434 434 MoveTo(CaptionLeft + 1, ClientHeight - WideFrame); 435 435 LineTo(CaptionLeft + 1, FrameBottom - 2); 436 Pen.Color := MainTexture. clBevelLight;436 Pen.Color := MainTexture.ColorBevelLight; 437 437 MoveTo(ClientWidth - CaptionLeft - 2, ClientHeight - WideFrame); 438 438 LineTo(ClientWidth - CaptionLeft - 2, FrameBottom - 2); … … 486 486 begin 487 487 Fill(Offscreen.Canvas, Left, Top, Width, Height, 488 SideFrame + ( wMaintexture- ClientWidth) div 2,489 TitleHeight + ( hMaintexture- ClientHeight) div 2);488 SideFrame + (Maintexture.Width - ClientWidth) div 2, 489 TitleHeight + (Maintexture.Height - ClientHeight) div 2); 490 490 end; 491 491
Note:
See TracChangeset
for help on using the changeset viewer.