>>>Hello Everybody!
>>>
>>>Is there any way to dock a system toolbar, especially the printpreview or report toolbar?
>>>
>>>TIA
>>>
>>>BB
>>
>>report form d:\vfp5test\report1.frx prev nowait
>>move window 'Print Preview' to 2,3 && move to some location
>>mouse at 2+1,3+1 dblclick && double-click to dock
>
>Excellent Ed, getting yours as a starting point found that :
>report form d:\vfp5test\report1.frx prev nowait
>mouse dblclick at 0,0 window "Print Preview"
>Also works.
>Somewhat this is not a new thread so :
>If it were "Report Controls", do you know a way to show it if !wvisible() ? Seem answering while asking but couldn't make it work yet.
>Thanks
>Cetin
Cetin, your code will actually toggle 'Print Preview', i.e. first time it will be docked, next time undocked, then docked again and so on.
In regards to 'Report Controls'
if wexist("Report Controls")
activate window "Report Controls" && or SHOW WINDOW?
endif
Edward Pikman
Independent Consultant