OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > Code Critique

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 24-11-2007, 16:21
LeonoCoder LeonoCoder is offline
Junior Member
 
Join Date: Nov 2006
Posts: 10
Default CorelDRAWX3 activeselection error

Hi to all, I have a code that works well on CorelDRAW 11 and 12: I draw 2 or more shapes at the center of a page, then I manually change the rotation center of the active selection to a corner of the page and I run the next code :

Code:
Sub mytest()
    Dim st As String
    st = "RotationcenterX : " & ActiveSelection.RotationCenterX & vbCr
    st = st & "RotationcenterY : " & ActiveSelection.RotationCenterY
    MsgBox st
End Sub
I have tested on corelDRAW 11 and 12, and it shows me the rotation center that i selected,,, but recently I tested on a computer with CorelDRAW X3 and instead it shows me the center of the shape, what happens with activeselection????, i'm using CorelDRAW 13.0.0.576 !!!

Pd. I use WindowsXP
Reply With Quote
  #2  
Old 24-11-2007, 17:18
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,770
Blog Entries: 10
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default Looks like...

it might be a bug, you are correct that the center is not correctly reported. I tested using CorelDRAW X3 build 739.

-Shelby
Reply With Quote
  #3  
Old 24-11-2007, 21:33
wOxxOm's Avatar
wOxxOm wOxxOm is offline
Senior Member
 
Join Date: Mar 2005
Posts: 836
Default

yes, it is an annoying X3 bug. Almost two years passed yet nothing's changed :-( so try to use a workaround, maybe group shapes first
Reply With Quote
  #4  
Old 26-11-2007, 06:34
LeonoCoder LeonoCoder is offline
Junior Member
 
Join Date: Nov 2006
Posts: 10
Default rotationcenter

Hi to all, Thanks for your advise.

Activeselection rotationcenter:
- On CorelDRAW11 works well
- On CorelDRAW12 works, but if you make a transformation (using code) and you read the property again its lost.
- On CorelDRAW13 don't work.

Pd: it's possible to make a virtual shape of a range of shapes? (activeselection with 2 or more shapes) to read the rotationcenter???, I know you can do a virtualshape of one shape, but it's possible with more than one?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Run-Time Error MikeS Calendar Wizard 8 22-07-2009 00:14
Pls, could someone forward this error to Corel u_know General 3 19-01-2008 19:24
Calendar Wizard 4.1and error message tarmshaw Calendar Wizard 8 04-12-2006 10:41
"Unexpected condition" error message (with code) s_federici CorelDRAW/Corel DESIGNER VBA 10 10-07-2003 21:46
"Object too complex" error dcsquare CorelDRAW/Corel DESIGNER VBA 0 25-05-2003 10:13


All times are GMT -5. The time now is 02:11.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com