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 27-02-2008, 20:46
Michael Cervantes
Guest
 
Posts: n/a
Default Aplication Property Bar unit

Does the Drawing Units field in the Property Bar could be changed programmatically?

Same question for the Property bar Landscape button.

Thanks
Reply With Quote
  #2  
Old 27-02-2008, 22:46
wOxxOm's Avatar
wOxxOm wOxxOm is offline
Senior Member
 
Join Date: Mar 2005
Posts: 836
Default

for units changing:
Code:
Sub UnitCM(): SetUnits cdrCentimeter: End Sub
Sub UnitMM(): SetUnits cdrMillimeter: End Sub
Sub UnitINCH(): SetUnits cdrInch: End Sub

Sub SetUnits(ByVal U As cdrUnit)
   If ActiveDocument Is Nothing Then Exit Sub
   With ActiveDocument.Rulers
      .HUnits = U
      .VUnits = U
   End With
End Sub
Reply With Quote
  #3  
Old 28-02-2008, 13:51
Michael Cervantes
Guest
 
Posts: n/a
Default Os

Thanks. It should change when document unit is changed. Same with the page orientation buttons.
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
default the crop property tonywong Corel Photo-Paint VBA 4 22-11-2008 21:38
Vanished property bar Wendy Hurst General 2 28-11-2006 17:23
Palette (or Colors array) property in VBA class in CDR12 zlatev CorelDRAW/Corel DESIGNER VBA 7 22-02-2005 12:28
Property Bar Refresh narcix CorelDRAW/Corel DESIGNER VBA 2 01-10-2003 12:37
VB6, GMS questions bbolte CorelDRAW/Corel DESIGNER VBA 12 06-12-2002 16:32


All times are GMT -5. The time now is 21:14.


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