Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Docking a system toolbar
Message
From
16/03/1998 12:34:50
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
16/03/1998 12:31:04
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00084827
Message ID:
00084854
Views:
42
>>>>>>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
Good trick Ed
Thanks
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform