Download Now
Forums

    Reference TFloatingForm

    Declared in Codebot.Forms.Floating.pas on line 28

    TFloatingForm is a borderless form which can be made transparent, faded, or set to let mouse input pass through it
      TFloatingForm = class(TForm)
      protected
        { Return true if the form provides its own per pixel alpha. On Windows such
          a form shows its content with UpdateLayeredWindow, and Opacity is applied
          when the content is updated. The default is false. }
        function PerPixelAlpha: Boolean; virtual;
      public
        { Create a new floating form }
        constructor Create(AOwner: TComponent); override;
        { Move and resize the form in one step }
        procedure MoveSize(Rect: TRectI);
        { The overall transparency of the form }
        property Opacity: Byte read FOpacity write SetOpacity;
        { Compositing is true when the window manager supports transparency }
        property Compositing: Boolean read GetCompositing;
        { When false mouse input passes through the form to windows below }
        property Interactive: Boolean read FInteractive write SetInteractive;
        { When true the form fades out, or hides if fading is not supported }
        property Faded: Boolean read FFaded write SetFaded;
      end;

    See also

    TRectI in Codebot.Graphics.Types.pas