Resizing TB Windows

Does anyone know how to stop the user from resizing the default window?

Comments

Resizing windows

Hi,

You must first detect that the user has attempted to RESIZE any window. This can be done with:
CALL TC_event(timer,event$,window,x1,x2)

When a window is resized event$ will be "SIZE" and window will give the window ID.

You can now use TC_SetRect(window,x1,x2,y1,y2) to force the window back to the size you want, e.g.

IF event$="SIZE" then
CALL TC_SetRect(window,x1,x2,y1,y2)
END IF

where x1,x2,y1,y2 are the co-ordinates of the window that you want to preserve.

Regards
Big John