AVAX-software.com Forums: Freeze Layer - AVAX-software.com Forums

Jump to content

Page 1 of 1

Freeze Layer Freeze Layer without Property Window

#1 User is offline   MarioRainer Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 43
  • Joined: 11-May 08
  • Location:Germany

Posted 17 March 2009 - 11:04 AM

Hello,

is the any kind to use the Freeze Layer Command (Avax.Command = 94)
without to get the Property Window?

Thanx
MarioRainer

#2 User is offline   Athanasios Gardos Icon

  • Administrator
  • Icon
  • Group: Admin
  • Posts: 333
  • Joined: 21-March 05
  • Gender:Male

Posted 18 March 2009 - 08:24 PM

Here it is a VB6 example:
Option Explicit

Private Sub Command1_Click()
    Dim sLayerNames() As String, iLayerStatus() As Integer
    Dim lMax As Long
    lMax = cAvax1.GetLayers(sLayerNames(), iLayerStatus())
    iLayerStatus(1) = iLayerStatus(1) Or 1 '(Or 1 : frozen / Or 2 : Locked / Or 4 : NonPrintable)
    Call cAvax1.SetLayers(sLayerNames(), iLayerStatus())
End Sub

Private Sub Form_Load()
    Dim iLayer As Integer
    Command1.Caption = "Freeze layer 1"
    Call cAvax1.StartAvax
    iLayer = 0
    Call cAvax1.Add_Text("Layer 0", 0, 0, 0, , 10, , , , , , iLayer)
    iLayer = 1
    Call cAvax1.Add_Text("Layer 1", 0, 5, 0, , 10, , , , , , iLayer)
End Sub

Private Sub Form_Unload(Cancel As Integer)
    Call cAvax1.EndAvax
End Sub

Athanasios Gardos
Avax-Software.com

#3 User is offline   MarioRainer Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 43
  • Joined: 11-May 08
  • Location:Germany

Posted 04 May 2009 - 08:06 PM

thanx

it`s great

Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users