내가있을 때이 :어떻게 VCL 스타일 페이지 컨트롤에 소유자 그리기에
내가 페이지 컨트롤에 소유자 그리기 수if not _nightMode then
TStyleManager.TrySetStyle('Windows', False);
:
procedure TMyMainForm.pcDetailedDrawTab(Control: TCustomTabControl; TabIndex: Integer;
const Rect: TRect; Active: Boolean);
var
can: TCanvas;
cx, by: Integer;
aclr: TColor;
begin
if pcDetailed.Pages[TabIndex] = tsActualData then begin
can := pcDetailed.Canvas;
cx := Rect.Left + Rect.Width div 2;
by := Rect.Bottom - 2;
if _nightMode then aclr := clWhite else aclr := clBlack;
can.Pen.Color := aclr;
can.Brush.Color := aclr;
can.Polygon([Point(cx - 10, by - 10), Point(cx + 10, by - 10), Point(cx, by)]);
end;
end;
나는이있을 때 :
을if _nightMode then
TStyleManager.TrySetStyle('Cobalt XEMedia', False);
내 그린 삼각형이 사라집니다.
모든 VCL 스타일로 삼각형을 그리는 방법은 무엇입니까?
델파이 10 시애틀.
주제가 아닌 VCL 스타일입니다. 델파이 버전은 종종 이러한 질문에 중요합니다. –