OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 27-02-2008, 20:46
Michael Cervantes
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.

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

for units changing:
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
Old 28-02-2008, 13:51
Michael Cervantes
Posts: n/a
Default Os

Thanks. It should change when document unit is changed. Same with the page orientation buttons.
Reply With Quote

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