unit PEN4; interface uses Winapi.Windows, Winapi.Messages, FMX.Platform,…
Jump to turn (20)
- 1unit PEN4; interface uses Winapi.Windows, Winapi.Messages, FMX.Platform, FMX.Pla
- 2unit PEN4; interface uses Winapi.Windows, Winapi.Messages, FMX.Platform, FMX.Pla
- 3unit PEN4; interface uses Winapi.Windows, Winapi.Messages, FMX.Platform, FMX.Pla
- 4[dcc64 Error] PEN4.pas(58): E2003 Undeclared identifier: 'ClientRect' [dcc64 Err
- 5움직이는 폼를 클릭해도 아래 윈도우에 클릭 이벤트가 처리되지 않아
- 6움직이는 폼를 클릭해도 아래 윈도우에 클릭 이벤트가 처리되지 않아
- 7마우스를 따라다니는 폼이 클릭이 되면 아래 윈도우에서 클릭 이벤트가 처리 되어야 해
- 8마우스를 따라다니는 폼이 클릭이 되면 아래 윈도우로 전달되지 않아
- 9클릭되면 아래에 있는 윈도우에서 클릭이벤트가 발생되어야 해
- 10작동안됨
- 11안됨
- 12클릭하면 Form4에 머물러 있어
- 13[dcc64 Error] PEN4.pas(77): E2003 Undeclared identifier: 'SetFocus' [dcc64 Error
- 14[dcc64 Error] PEN4.pas(77): E2003 Undeclared identifier: 'TWinControl' [dcc64 Er
- 15컴파일 되고 실행은 되는데 폼4 클릭이 되었을 때 이벤트가 아래 윈도우에 전달되지 않아
- 16클릭 이벤트가 폼4에서는 작동되지 않아야 해
- 17클릭 이벤트가 폼4에서는 작동되지 않아야 하는데 폼4에 머물러 있어
- 18[dcc64 Error] PEN4.pas(42): E2003 Undeclared identifier: 'ControlStyle' [dcc64 E
- 19[dcc64 Error] PEN4.pas(42): E2003 Undeclared identifier: 'Enabled' [dcc64 Fatal
- 20[dcc64 Error] PEN4.pas(42): E2003 Undeclared identifier: 'TWinControl' [dcc64 Er
- User
unit PEN4;
interface
uses Winapi.Windows, Winapi.Messages, FMX.Platform, FMX.Platform.Win, System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Objects, FMX.Controls.Presentation, FMX.StdCtrls, FMX.Effects;
type TForm4 = class(TForm) Timer1: TTimer; Image1: TImage; ShadowEffect1: TShadowEffect; procedure Timer1Timer(Sender: TObject); procedure FormCreate(Sender: TObject); private { Private declarations } public { Public declarations } end;
var Form4: TForm4;
implementation
{$R *.fmx}
procedure TForm4.FormCreate(Sender: TObject); begin close; // 실행이 되면 일단 닫아야 하고 리스트에서 선택받으면 실행됨 end;
procedure TForm4.Timer1Timer(Sender: TObject); var MousePos: TPointF; begin MousePos := Screen.MousePos; Form4.Left := Trunc(MousePos.X)+4; Form4.Top := Trunc(MousePos.Y)-10; Form4.BringToFront;
end;
end. 마우스의 움직이는 좌표가 투명한 폼의 좌표로 처리되고 있어. 폼 안에 이미지가 있는데 마우스를 빠르게 움직이면서 클릭하면 폼 안의 이미지가 클릭되면서 마우스 이벤트가 아래 윈도우에 전달이 되지 않아. 이미지가 클릭되어도 마우스 이벤트가 아래 윈도우에 전달되도록 하고 싶어. 오류 없는 전체적인 코드 작성해줘
- Assistant