Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Docking a system toolbar
Message
From
16/03/1998 12:31:04
 
 
To
16/03/1998 12:22:10
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00084827
Message ID:
00084853
Views:
38
>>>>>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
>Problem is that wexist() Ed. It doesn't work if !wexist(). Activate or show both return "Report Controls" window is not defined (help says I could do it but I cannot).
>Cetin

You should push the toolbar first:
modi report d:\vfp5test\report1.frx nowait && I guees you could use IN WINDOW clause to open it on background if you want
if !wexist("Report Controls")
keyboard '{ALT+V}'
keyboard '{L}'
endif
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform