// Caption
R := Rect(0, 0, Width, 30);
// Eigentlich geraten, aber GEtThemeMetric gibt einen Phantasiewert zurück -.-
canvHandle := TeschtForm.Canvas.Handle;
Details := ThemeServices.GetElementDetails(twDialog);
// ThemeServices.DrawElement(canvHandle, Details, R);
DrawThemeParentBackground(
Handle, canvHandle, @R);
DrawThemeBackground(aThemeHandle, canvHandle, WP_DIALOG, 0, R, @R);
// LeftBorder
R := Rect(0, 0, 2, Height);
Details := ThemeServices.GetElementDetails(twDialog);
// ThemeServices.DrawElement(canvHandle, Details, R);
DrawThemeParentBackground(
Handle, canvHandle, @R);
DrawThemeBackground(aThemeHandle, canvHandle, WP_DIALOG, 0, R, @R);
// RightBorder
R := Rect(Width - 2, 0, Width, Height);
Details := ThemeServices.GetElementDetails(twDialog);
// ThemeServices.DrawElement(canvHandle, Details, R);
DrawThemeParentBackground(
Handle, canvHandle, @R);
DrawThemeBackground(aThemeHandle, canvHandle, WP_DIALOG, 0, R, @R);
// BottomBorder
R := Rect(0, Height - 2, Width, Height);
Details := ThemeServices.GetElementDetails(twDialog);
// ThemeServices.DrawElement(canvHandle, Details, R);
DrawThemeParentBackground(
Handle, canvHandle, @R);
DrawThemeBackground(aThemeHandle, canvHandle, WP_DIALOG, 0, R, @R);