Catalog · How the catalog works
FMXWindowsDispatch
Allow the FMX windows to process Windows messages
- ★ 7 on GitHub
Anyone may press Interesting, signed in or not. It helps others find this project.
README
FMXWindowsDispatch
Add to form message event
type
TForm5 = class(TForm)
Label1: TLabel;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
procedure WMSize(var Message: TWMSize); message WM_SIZE;
end;
...
procedure TForm5.WMSize(var Message: TWMSize);
begin
Label1.Text := Message.Width.ToString + ':' + Message.Height.ToString;
end;Add unit to uses
uses
FMX.Windows.Dispatch;And call AllowDispatchWindowMessages procedure when creating a window
procedure TForm5.FormCreate(Sender: TObject);
begin
AllowDispatchWindowMessages(Self);
end;
