![]() |
#1
|
||||
|
||||
![]()
Hey Everyone!
Quick question... I draw a box and do this... Code:
S.CreateContour(cdrContourInside, 1, 1, cdrDirectFountainFillBlend).Separate BUT... what I'd like to do is name the square created by the contour... or name the seperated object... after it has been seperated... How would I do this? Thanks in Advance, B |
#2
|
||||
|
||||
![]()
Wasn't sure what you meant by naming....but here is my attempt.
Code:
Sub NamingContour() Dim s As Shape Dim sContour As Shape Set s = ActiveShape Set sContour = s.CreateContour(cdrContourInside, 1, 1, cdrDirectFountainFillBlend).Separate(1) sContour.Name = "MyContour" End Sub -Shelby |
#3
|
||||
|
||||
![]()
As usual... works like a charm and it's exactly what I needed... thank you muchly!
But... I'm curious... what does the (1) achieve or signify after the Code:
.Seperate(1) B |
#5
|
||||
|
||||
![]()
Contour.Separate returns a range of shapes which used to comprise the contour. Shelby's code is essentially this:
Code:
Sub NamingContour() Dim s As Shape Dim sContour As Shape Dim sr As ShapeRange Set s = ActiveShape Set sr = s.CreateContour(cdrContourInside, 1, 1, cdrDirectFountainFillBlend).Separate Set sContour = sr(1) sContour.Name = "MyContour" End Sub |
#6
|
||||
|
||||
![]()
very interesting! I'm still learning all this stuff! I'm getting better... but still picking up stuff along the way! I appreciate the info and the help guys!
![]() B |
![]() |
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 |
Positionin few object to few object | VaaL2004 | CorelDRAW/Corel DESIGNER VBA | 1 | 10-10-2008 02:18 |
How to select object inside another object | jukos | General | 4 | 24-10-2005 22:27 |