>I have a custom toolbar in a main VFP screen based on VFP toolbar class.
>
>How to prevent its docking to top and bottom of the main VFP screen or to prevent docking at all?
>
>I tried this by adding the code
>
>
IF INLIST( nLocation,0,3)
> NODEFAULT
> RETURN .F.
> ENDIF
>
>to toolbar beforedock method but this does'nt prevent toolbar from docking.
Hi Andrus,
this is a bad VFP design.
It is not possible with direct coding of VFP.
On VFP9 it can be tried with BINDEVENT(toolbar.hwnd.....)
but task is difficult to make it without to generate C0005 errors.
Fabio