OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 21-02-2011, 18:51
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default Bug in X5 getting size

Hi.
See simple code and test file. Use on both sets of ungrouped shapes. Large amount of shapes changes results.

-John

Code:
Sub bugHmmm1()

    MsgBox ActiveShape.SizeHeight
    
End Sub

Sub bugHmmm2()
    Dim x#, y#, w#, h#
    Dim s As Shape
    Set s = ActiveShape
    s.GetBoundingBox x, y, w, h
    MsgBox h
End Sub
Attached Files
File Type: cdr test2.cdr (43.9 KB, 537 views)
Reply With Quote
  #2  
Old 23-02-2011, 20:47
ager ager is offline
Member
 
Join Date: Jul 2010
Location: Russia
Posts: 45
Default Problem solving

I can confirm this bug for X4 version. This code works right:

Code:
Sub bugHmmm1()

   MsgBox ActiveSelectionRange.SizeHeight
    
End Sub

Sub bugHmmm2()
    Dim x#, y#, w#, h#
    Dim s As ShapeRange
   Set s = ActiveSelectionRange
    s.GetBoundingBox x, y, w, h
    MsgBox h
End Sub
Reply With Quote
  #3  
Old 24-02-2011, 07:06
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

Hi.
Thanks,

I guess your supposed to use ActiveSelection if you know there might more than 1 shapes but I just thought it was weird.

-John
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
the size of font in X4 nathan CorelDRAW/Corel DESIGNER VBA 2 23-07-2010 12:12
PDF size Dave General 1 08-11-2006 08:42
Draw X3: bug in "Font Size Next Combo Size" wOxxOm General 3 31-01-2006 12:49
size of my gms met CorelDRAW/Corel DESIGNER VBA 5 24-11-2005 08:58
How sets size form same as size images ? woycek21 Corel Photo-Paint VBA 0 09-07-2005 12:30


All times are GMT -5. The time now is 05:04.


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