You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ITSM/.svn/pristine/61/619348c095a5ccb9e86ea1d6a21...

143 lines
6.3 KiB

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML xmlns:MSHelp="http://msdn.microsoft.com/mshelp" DIR="LTR"><HEAD>
<meta name="GENERATOR" content="VBdocman .NET - documentation generator; http://www.vbdocman.com">
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=UTF-8">
<TITLE>MySecurity.Set_Preferences -Methode</TITLE>
<xml>
<MSHelp:TOCTitle Title="MySecurity.Set_Preferences -Methode"/>
<MSHelp:RLTitle Title="MySecurity.Set_Preferences -Methode"/>
<MSHelp:Keyword Index="A" Term="topic_0000000000000E91"/>
<MSHelp:Keyword Index="K" Term="MySecurity.Set_Preferences -Methode"/>
<MSHelp:Keyword Index="K" Term="Vertragsverwaltung.TKB.VV.Utils.MySecurity.Set_Preferences -Methode"/>
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.TKB.VV.Utils.MySecurity.Set_Preferences"/>
<MSHelp:Keyword Index="F" Term="MySecurity.Set_Preferences"/>
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.TKB.VV.Utils.MySecurity.MySecurity.Set_Preferences"/>
<MSHelp:Attr Name="DevLang" Value="VB"/>
<MSHelp:Attr Name="DevLangVers" Value="kbLangVB"/>
<MSHelp:Attr Name="DocSet" Value="Visual Basic"/>
<MSHelp:Attr Name="DocSet" Value="Visual Studio"/>
<MSHelp:Attr Name="DocSet" Value="VSM"/>
<MSHelp:Attr Name="Product" Value="VB"/>
<MSHelp:Attr Name="ProductVers" Value="kbVBp700"/>
<MSHelp:Attr Name="Product" Value="VSA"/>
<MSHelp:Attr Name="ProductVers" Value="kbVSA"/>
<MSHelp:Attr Name="Technology" Value="ManagedCode"/>
<MSHelp:Attr Name="TechnologyVers" Value="kbManagedCode"/>
<MSHelp:Attr Name="TopicType" Value="kbSyntax"/>
<MSHelp:Attr Name="TargetOS" Value="Windows"/>
<MSHelp:Attr Name="Locale" Value="kbEnglish"/>
</xml>
<META name="rtfFileName" content="">
<META NAME="save" CONTENT="history">
<!--CSS_START-->
<SCRIPT SRC="MSHelp/scripts/dtuelink.js"></SCRIPT>
<!--CSS_END-->
<SCRIPT language="JavaScript">
function indent(level) {
for (i=1; i<=level; i++) {
document.write("&nbsp;&nbsp;&nbsp;");
}
}
</SCRIPT>
</HEAD>
<body topmargin=0 id="bodyID" class = "dtBODY"><!--NONSCROLLING BANNER START-->
<div id="nsbanner">
<div id="bannerrow1">
<TABLE CLASS="bannerparthead" CELLSPACING=0>
<TR ID="hdr">
<TD CLASS="runninghead" nowrap>Vertragsverwaltung-Klassenbibliothek</TD>
<TD CLASS="product" nowrap>&nbsp;</TD>
</TR>
</TABLE>
</div>
<div id="TitleRow">
<H1 class="dtH1"><A NAME="topic_0000000000000E91"></A>MySecurity.Set_Preferences -Methode</H1>
</div></div>
<!--NONSCROLLING BANNER END-->
<DIV id="nstext" valign="bottom"><!---->
<P>Security-Einstellungen setzen</P>
<PRE class="syntax"><SPAN class="lang">[Visual&nbsp;Basic]
</SPAN><B>Private Sub Set_Preferences( _&nbsp;<br> ByRef <i>obj</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a>, _&nbsp;<br> ByVal <i>read_only</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemBooleanClassTopic.htm">Boolean</a>, _&nbsp;<br> ByVal <i>invisible</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemBooleanClassTopic.htm">Boolean</a>, _&nbsp;<br> ByVal <i>SecurityObjectItem</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">String</a> _&nbsp;<br>)</B></PRE>
<H4 class="dtH4">Parameter</H4>
<dl>
<dt><i>obj</i></dt>
<dd>Betroffenes Objeckt (Menuitem, Conrol usw.)</dd>
<dt><i>read_only</i></dt>
<dd>Readonly ja/nein</dd>
<dt><i>invisible</i></dt>
<dd>Sichtbar ja/nein</dd>
<dt><i>SecurityObjectItem</i></dt>
<dd>Name des Unterobjektes - wird für die Spalteneinstellungen von C1TruedbGrids verwendet</dd>
</dl>
<H4 class="dtH4">Quellcode</H4>
<pre class="code"><SPAN class="lang">[Visual&nbsp;Basic]</SPAN>
Private Sub Set_Preferences(ByRef obj As Object, ByVal read_only As Boolean, ByVal invisible As Boolean, ByVal SecurityObjectItem As String)&nbsp;<br> Dim objtype As System.Type = obj.GetType&nbsp;<br> Select Case LCase(objtype.Name)&nbsp;<br> Case &quot;toolstripmenuitem&quot;&nbsp;<br> Dim ctl As ToolStripMenuItem = obj&nbsp;<br> If read_only Then ctl.Enabled = False&nbsp;<br> If invisible Then&nbsp;<br> ctl.Visible = False&nbsp;<br> ctl.Enabled = False&nbsp;<br> End If&nbsp;<br> Case &quot;textbox&quot;, &quot;label&quot;, &quot;combobox&quot;, &quot;checkbox&quot;, &quot;toolstripbutton&quot;, &quot;panel&quot;&nbsp;<br> If read_only Then obj.Enabled = False&nbsp;<br> If invisible Then obj.Visible = False&nbsp;<br> Case &quot;tabpage&quot;&nbsp;<br> If invisible Then&nbsp;<br> Dim tbp As TabPage = obj&nbsp;<br> For Each x As MyFormControls In Me.ctlcol&nbsp;<br> If x.MySecurityObject = tbp.Parent.Name Then&nbsp;<br> Dim tb As TabControl = x.MyControl&nbsp;<br> tb.TabPages.Remove(tbp)&nbsp;<br> Exit Sub&nbsp;<br> End If&nbsp;<br> Next&nbsp;<br> End If&nbsp;<br> If read_only Then obj.enabled = False&nbsp;<br>&nbsp;<br> Case &quot;c1truedbgrid&quot;&nbsp;<br> Dim ctl As C1TrueDBGrid = obj&nbsp;<br> If SecurityObjectItem = &quot;&quot; Then&nbsp;<br> If read_only Then ctl.Enabled = False&nbsp;<br> If invisible Then obj.Visible = False&nbsp;<br> Else&nbsp;<br> If read_only Then ctl.Splits(0).DisplayColumns(SecurityObjectItem).Locked = True&nbsp;<br> If invisible Then ctl.Splits(0).DisplayColumns(SecurityObjectItem).Visible = False&nbsp;<br> End If&nbsp;<br>&nbsp;<br> End Select&nbsp;<br> End Sub
</pre>
<H4 class="dtH4">Forderungen</H4>
<P><b class="le">Plattformen:&nbsp;</b>Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition</P>
<H4 class="dtH4">Siehe auch</H4>
<p>
<a href="topic_0000000000000E84.html">MySecurity</a>
</p>
<DIV CLASS="footer">
<HR>
Generated by VBdocman .NET
<p>
</div></div>
</BODY>
</HTML>