An open API service indexing awesome lists of open source software.

https://github.com/hemulgm/fmxwindowsdispatch

Allow the FMX windows to process Windows messages
https://github.com/hemulgm/fmxwindowsdispatch

Last synced: 7 months ago
JSON representation

Allow the FMX windows to process Windows messages

Awesome Lists containing this project

README

          

# FMXWindowsDispatch

Add to form message event
```pascal
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

```pascal
uses
FMX.Windows.Dispatch;
```

And call AllowDispatchWindowMessages procedure when creating a window

```pascal
procedure TForm5.FormCreate(Sender: TObject);
begin
AllowDispatchWindowMessages(Self);
end;
```