Gets ihe application to which the object belongsv

The types of any function parameters and properties are given as hyperlinks to the type definition or class itself, if the type is defined within the current object model. For example, the Application property in the preceding figure is a member of the PHOTOPAINT Document class however, Application is also the property's type, and it is a PHOTOPAINT class, so to view the class and its members, you can click the Application hyperlink. e> To increase the height of the Information window, drag...

Filling shapes

There are many types of fills in CorelDRAW, including uniform fills, fountain fills, PostScript fills, pattern fills, and texture fills, and each type needs to be handled differently. Only uniform and fountain fills are discussed here. The read-only Type property of a Fill object gives the type of the fill, or whether there is no fill. The following code gets the fill type The fill type cannot be set with this property it is set when the fill is created and applied. To remove any type of fill,...

Creating text objects

Text objects are another type of Shape object. However, handling text is more complicated than handling other shapes. In CorelDRAW, text is manipulated as a TextRange object. Text ranges can be accessed by using any of the following properties of Shape.Text Frames collection In this scenario, each TextFrame object's default member is a TextRange object, which is the text within the frame. Story In this scenario, the TextRange object contains all of the text in all of the frames linked to the...

Coloring shapes

Color can be applied to both the fill and the outline of an object, as well as to page backgrounds, lenses, and gradient fills. You can copy one color to another using the method CopyAssign Dim sh As Shape Set sh ActiveShape sh.Outline.Color.CopyAssign sh.Fill.UniformColor You can get the color model of a color object by getting its Type property colType ActiveShape.Outline.Color.Type When you have the type of the color usually one of cdrColorRGB, cdrColorCMYK, or cdrColorGray, but not limited...

Using the VB Editor

Corel Draw Toolbars

The VB Editor that is included with VBA is similar to the one included with full Visual Basic. The VB Editor lets you develop code and dialog boxes, browse the object tree and the modules within each project, set individual properties for objects, and debug code. However, it's important to note that the VB Editor for VBA cannot compile executable EXE program files. The VB Editor features several windows and toolbars, all of which are discussed in this section. The three available windows are...

Writing macros

Before you can begin writing a macro, you must create a Global Macro Storage GMS file also known as a project file for it. A GMS file is stored in its application's GMS folder, which is typically located at X Program Files Corel CorelDRAW Graphics Suite X3 lt application gt where X is the letter that corresponds to the drive to which you've installed CorelDRAW Graphics Suite X3 . The VB Editor stores all of the modules for that project in the project's GMS file. Each project that you create can...