![]() |
#1
|
|||
|
|||
![]()
I made this simple macro but for some reason the setoutline.properties does not give me an object with no outlines like it should. Can you find the glitch?
Thanks for your time. -Greg Code:
Private Sub CommandButton6_Click() Dim OrigSelection As ShapeRange Set OrigSelection = ActiveSelectionRange Dim dup1 As ShapeRange Set dup1 = OrigSelection.Duplicate dup1.ApplyNoFill dup1.SetOutlineProperties dup1.OrderToBack OrigSelection.ConvertToCurves End Sub |
#2
|
||||
|
||||
![]()
Hi.
Click with your mouse and put the cursor right after the letter s in properties for dup1.SetOutlineProperties. Now press the space bar. You will see the code tip light up. Notice the square backets around each parameter. This means the parameter is optional. You can now press the comma on your keyboard until the parameter that you need to set becomes highlighted. Enter the correct property you need and don't add any additional commas. All of the params in this method are optional. Example: dup1.SetOutlineProperties 0.003, , col1 Also any time you have a function you don't understand you can put the mouse cursor in it and press f1. This will bring up the help for corel's vba object model (or vba's if it is not corel specific). It will show the parameters for each function. Take special notice of what each function returns. If it is a property then take special notice if it is read only or not. Ready only will only return a value, but you cannot set it. For example: dup1.outline.width = .003 You are setting this property to .003 which is hairline. This is not a reaady only property, so you can set it, or return it like this: dim w as double w = dup1.outline.width Hope this helps. -John |
#4
|
|||
|
|||
![]() Quote:
P.S. - not sure why I posted this in Designer thread....user error. -Greg |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Find and delete objects with no fill or outline | keytecstaff | CorelDRAW/Corel DESIGNER VBA | 17 | 22-06-2010 23:34 |
Shape: Back of Page | dear | CorelDRAW/Corel DESIGNER VBA | 4 | 21-02-2008 16:50 |
Create Ellipse with Fill & NO Outline | dungbtl | CorelDRAW/Corel DESIGNER VBA | 3 | 10-11-2007 10:31 |
GIF Animated back color ? erratic | Trebly | General | 0 | 13-08-2007 17:48 |
Selecting an item at the back | ozambersand | General | 3 | 02-06-2005 17:56 |