TGraphicControls hide TWinControls in design time on Mac OS X
Original Reporter info from Mantis: piotrem
-
Reporter name: Piotr Karasinski
Original Reporter info from Mantis: piotrem
- Reporter name: Piotr Karasinski
Description:
TGraphicControl and descendants hide buttons, panels etc. (seams all TWinControl descendants) ONLY in design time on Mac OS X. It is not possible to 'Z-order -> Move to front' or back. The problem doesn't occur in runtime, when buttons are drawn in front, as I would expect them to. In Linux it's less of a problem since TWinControl is drawn on top of TGraphicControl however changing the Z-order is still impossible. Attached is the screenshot of how it looks like on Mac OS X and an example code for a simple TGraphicControl which will cover other TWinControls.
Additional information:
unit Background;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs;
type
TBackground = class(TGraphicControl)
protected
procedure Paint; override;
end;
procedure Register;
implementation
{ TBackground }
procedure TBackground.Paint;
begin
with Canvas do
begin
Brush.Color := clBlack;
Rectangle(0, 0, Width, Height);
end;
inherited Paint;
end;
procedure Register;
begin
RegisterComponents('Test',[TBackground]);
end;
end.
Mantis conversion info:
- Mantis ID: 19685
- Version: 0.9.30
- Monitored by: » piotrem (Piotr Karasinski)