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.
142 lines
6.2 KiB
142 lines
6.2 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>frmVertragskontakt.Disable_Enable_Menu -Methode</TITLE>
|
|
<xml>
|
|
<MSHelp:TOCTitle Title="frmVertragskontakt.Disable_Enable_Menu -Methode"/>
|
|
<MSHelp:RLTitle Title="frmVertragskontakt.Disable_Enable_Menu -Methode"/>
|
|
<MSHelp:Keyword Index="A" Term="topic_00000000000007B0"/>
|
|
<MSHelp:Keyword Index="K" Term="frmVertragskontakt.Disable_Enable_Menu -Methode"/>
|
|
<MSHelp:Keyword Index="K" Term="Vertragsverwaltung.frmVertragskontakt.Disable_Enable_Menu -Methode"/>
|
|
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.frmVertragskontakt.Disable_Enable_Menu"/>
|
|
<MSHelp:Keyword Index="F" Term="frmVertragskontakt.Disable_Enable_Menu"/>
|
|
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.frmVertragskontakt.frmVertragskontakt.Disable_Enable_Menu"/>
|
|
<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(" ");
|
|
}
|
|
}
|
|
</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> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</div>
|
|
<div id="TitleRow">
|
|
<H1 class="dtH1"><A NAME="topic_00000000000007B0"></A>frmVertragskontakt.Disable_Enable_Menu -Methode</H1>
|
|
</div></div>
|
|
<!--NONSCROLLING BANNER END-->
|
|
|
|
<DIV id="nstext" valign="bottom"><!---->
|
|
|
|
<P>Enabling bzw. Disabling der Menu-Einträge aufgrund der angezeigten Rows im Truedbgrind</P>
|
|
|
|
|
|
|
|
|
|
<PRE class="syntax"><SPAN class="lang">[Visual Basic]
|
|
</SPAN><B>Private Function Disable_Enable_Menu( _ <br> ByRef <i>menu</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemWindowsFormsContextMenuStripClassTopic.htm">ContextMenuStrip</a>, _ <br> ByRef <i>c1data</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfC1WinC1TrueDBGridC1TrueDBGridClassTopic.htm">C1TrueDBGrid</a> _ <br>) As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a></B></PRE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<H4 class="dtH4">Parameter</H4>
|
|
<dl>
|
|
<dt><i>menu</i></dt>
|
|
<dd>Zu bearbeitendes Menu</dd>
|
|
<dt><i>c1data</i></dt>
|
|
<dd>Betroffenes Grid</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<H4 class="dtH4">Hinweise</H4>
|
|
<P>Nach dem Setzen der Submenus wird sec.form_Security durchlaufen, damit allfällig standardmössig aktivierte Menueinträge
|
|
aufgrund der Security-Einstellung wieder deaktiviert werden</P>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<H4 class="dtH4">Quellcode</H4>
|
|
<pre class="code"><SPAN class="lang">[Visual Basic]</SPAN>
|
|
Private Function Disable_Enable_Menu(ByRef menu As ContextMenuStrip, ByRef c1data As C1TrueDBGrid) <br> If Me.FormReadonly Then <br> For Each obj As Object In menu.Items <br> Dim objtype As System.Type = obj.GetType <br> If LCase(objtype.Name) = "toolstripmenuitem" Then <br> Dim mnu As ToolStripMenuItem = obj <br> If (mnu.Text.IndexOf("Anzeigen") > 0 Or mnu.Text.IndexOf("anzeigen") > 0 Or mnu.Text.IndexOf("Details") > 0) And c1data.Splits(0).Rows.Count > 0 Then <br> mnu.Enabled = True <br> Else <br> mnu.Enabled = False <br> End If <br> End If <br> Next <br> sec.Set_Form_Security(Me) <br> Exit Function <br> End If <br> <br> If c1data.Splits(0).Rows.Count = 0 Then <br> For Each obj As Object In menu.Items <br> Dim objtype As System.Type = obj.GetType <br> If LCase(objtype.Name) = "toolstripmenuitem" Then <br> Dim mnu As ToolStripMenuItem = obj <br> If mnu.Text.IndexOf("Neu") > 0 Then <br> mnu.Enabled = True <br> Else <br> mnu.Enabled = False <br> End If <br> End If <br> Next <br> Else <br> For Each obj As Object In menu.Items <br> Dim objtype As System.Type = obj.GetType <br> If LCase(objtype.Name) = "toolstripmenuitem" Then <br> Dim mnu As ToolStripMenuItem = obj <br> mnu.Enabled = True <br> End If <br> Next <br> End If <br> sec.Set_Form_Security(Me) <br> <br> End Function
|
|
</pre>
|
|
|
|
|
|
|
|
<H4 class="dtH4">Forderungen</H4>
|
|
<P><b class="le">Plattformen: </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_0000000000000785.html">frmVertragskontakt</a>
|
|
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
<DIV CLASS="footer">
|
|
<HR>
|
|
Generated by VBdocman .NET
|
|
<p>
|
|
</div></div>
|
|
</BODY>
|
|
</HTML>
|
|
|