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 28-12-2010, 03:45
0meg@ 0meg@ is offline
Member
 
Join Date: Nov 2010
Posts: 37
Default Show or Hide Guides Layer

Hi all. I want to make macro like LF_toggleview but for Guides. With some key pressed guideliness (not local guideliness!) show and with key pressed again to hide guideliness.

I have tried:

ActiveDocument.MasterPage.Guides = False
but it is like Guides only virtual layer...
I tried to record macro and code is:

ActivePage.GuidesLayer.Visible = False
ActivePage.GuidesLayer.Visible = True

But as i know GuidesLayer is just local guideslayer which is empty. I have no ideas.
Reply With Quote
  #2  
Old 28-12-2010, 15:59
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

Hi.
Would this work for you?

Code:
Sub toggleGuides1()
    If ActiveDocument.Pages(0).Layers("Guides").Visible = True Then
        ActiveDocument.Pages(0).Layers("Guides").Visible = False
    Else
        ActiveDocument.Pages(0).Layers("Guides").Visible = True
    End If
End Sub
-John
Reply With Quote
  #3  
Old 29-12-2010, 22:47
0meg@ 0meg@ is offline
Member
 
Join Date: Nov 2010
Posts: 37
Default

Thank you runflacruiser, this works.
But what does Pages(0).Layers("Guides") mean in context of Corel Draw? Is it master page?
Reply With Quote
  #4  
Old 30-12-2010, 09:08
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

Hi.
Yes it is.
Glad to hear it works for you.
-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
Simple code problem - Show/Hide in Macro fungel Macros/Add-ons 4 18-08-2010 13:51
Macro to open show/hide SCREEN PRINT toolbar fungel Macros/Add-ons 5 07-02-2010 18:31
HOW-TO implement in VB : show/hide ALL toolbars (as AI) wOxxOm CorelDRAW/Corel DESIGNER VBA 7 09-03-2007 10:06
Hide/ Show Toolbars ivelink CorelDRAW/Corel DESIGNER VBA 1 23-06-2005 11:17
Deleting Shapes on the Guides Layer Rick Randall CorelDRAW/Corel DESIGNER VBA 2 28-09-2004 11:07


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


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