Hi,

Rene mentioned in other thread it would be nice to capture some events occuring to TBGL window. I started to write notes on paper and quickly found out this can be expanded further.

I would like to discuss first, what would be considered the best approach.

My currently considered syntax is:
TBGL_BindWindowEvent( hWnd, <eventType>, handlerFunction)
Where eventType would be:
%TBGL_OnOpen
%TBGL_OnClose
%TBGL_OnMaximize
%TBGL_OnMinimize
%TBGL_OnSizeChanging
%TBGL_OnSizeChanged

Your handler function could process the event as you want, and some events could be cancelled also by using return value:
%TBGL_Cancel
%TBGL_Pass (default)

The handler functions would receive metadata to easen the processing. For example:
Client.Width, Client.Height, Window.Position.x, Window.Position.y, Window.Width, Windows.Height


Let me know...
Petr