Once you open a new file CDRAW the default zoom shows you the page, but as I usually work outside of it it'd be much more practical for me to get all the objects centered in view without having to click F4. I sometimes have to open many old files at a time in search for a previous design and clicking F4 through all of them gets tedious and takes longer than expected. Recently I''ve been saving new files with all objects centered to the page, and the page made big enough to fit them all, but with old files this 'trick' is useless.
Is this possible?
It it isn't, is there some other trick that would do the job?
Thanks!
If you are using a version of CorelDRAW that supports VBA, then I think that you might accomplish that by putting this code in GlobalMacros -> ThisMacroStorage:
Private Sub GlobalMacroStorage_DocumentOpen(ByVal Doc As Document, ByVal FileName As String) ActiveWindow.ActiveView.ToFitAllObjectsEnd Sub
I always feel guilty when bumping old threads, but I must comment on this.
Fantastic! Not only do I not need to see the print area (page), every file I create and complete or revisit to modify must have a blank print area - nothing to see here. Thats because all of the content is contained below that area as "panels" to be moved up to the print area when its time to do so. When I open a file, I need the view to fit all. And now it does. Thanks.
No need to feel guilty!
If we had something like a "Macros for Users" section on the forum - one not tied to any specific version of CorelDRAW - then we would have a good place to discuss this sort of stuff, and where people could browse for such content.
Instead, we have nuggets buried in umpteen different version-specific forums, that are only going to found if one searches (successfully; good luck with that) or if a response such as yours bumps it into view temporarily.
You might also like Zoom to Selection Plus. That performs the zoom based on what you have selected, and is customizable for the amount of empty space used for "padding" the view.
I've revised ZTSP a bit since posting that, and would like to eventually add it to my blog.
Yeah. Sometimes I'm not sure if its going to take more time to find a macro in these forums or to make it myself, hah. Depends on complexity, my familiarity, etc. of course.
Your macro looks useful and I'd give it a try but it appears that the drive link you have on that page you linked to above is broken. (https://drive.google.com/open?id=1lBkFxQ0qX0TPznvrIo7e_X8NPJKJXbQk)
Thanks for letting me know about that.
I've worked up a blog entry for ZTSP: #14 - Macro - "Zoom to Selection Plus".