View Single Post
Old 12-12-2002, 10:33
Alex's Avatar
Alex Alex is offline
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default Re: Speeding up a macro

Rick, what version of CorelDRAW do you use?

The easiest method would be to use VBA's SendKeys method and simulate keystrokes for Windows>Docker>... menu items. However you still need to find out if the docker is actually there before you send those keys. You can use FindWindow from Windows API to try to locate the docker window if it's already open.

You could use SendMessage Windows API function to show/hide the docker instead of resorting to SendKeys... Anyway, let me know your Draw version and I will try to come up with some solution that would work in your case.

Oh, did I mention that there isn't an easy way to handle dockers through CorelDRAW's object model?
Reply With Quote