Fixed: context menu position

This commit is contained in:
Ray 2020-08-23 11:40:44 +01:00
parent 6e58d6bb5b
commit f896729beb
5 changed files with 9 additions and 7 deletions

View File

@ -70,6 +70,7 @@ namespace bzit.bomg
} }
this.ApplicationMode = AppMode.Clear; this.ApplicationMode = AppMode.Clear;
sessionFilename = sessionPassword = null; sessionFilename = sessionPassword = null;
usePassword = false; usePassword = false;
} }
@ -1109,13 +1110,13 @@ namespace bzit.bomg
switch (treeView1.SNode.GetNodeType()) switch (treeView1.SNode.GetNodeType())
{ {
case RyzStudio.Windows.Forms.BookmarkTreeView.NodeType.Root: case RyzStudio.Windows.Forms.BookmarkTreeView.NodeType.Root:
rootTreeNodeMenu.Show(Cursor.Position); rootTreeNodeMenu.Show(e.Node.TreeView, e.X, e.Y);
break; break;
case RyzStudio.Windows.Forms.BookmarkTreeView.NodeType.Folder: case RyzStudio.Windows.Forms.BookmarkTreeView.NodeType.Folder:
folderTreeNodeMenu.Show(Cursor.Position); folderTreeNodeMenu.Show(e.Node.TreeView, e.X, e.Y);
break; break;
case RyzStudio.Windows.Forms.BookmarkTreeView.NodeType.Page: case RyzStudio.Windows.Forms.BookmarkTreeView.NodeType.Page:
pageTreeNodeMenu.Show(Cursor.Position); pageTreeNodeMenu.Show(e.Node.TreeView, e.X, e.Y);
break; break;
default: default:
break; break;

View File

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.3.0.018")] [assembly: AssemblyVersion("0.3.0.025")]
[assembly: AssemblyFileVersion("0.1.0.0")] [assembly: AssemblyFileVersion("0.1.0.0")]

View File

@ -89,7 +89,7 @@ namespace bzit.bomg.Properties {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to 0.3.0.018 beta. /// Looks up a localized string similar to 0.3.0.025 beta.
/// </summary> /// </summary>
internal static string app_version { internal static string app_version {
get { get {

View File

@ -128,7 +128,7 @@
<value>Bookmark Manager</value> <value>Bookmark Manager</value>
</data> </data>
<data name="app_version" xml:space="preserve"> <data name="app_version" xml:space="preserve">
<value>0.3.0.018 beta</value> <value>0.3.0.025 beta</value>
</data> </data>
<data name="arrow_down_circle" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="arrow_down_circle" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\2\arrow-down-circle.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\2\arrow-down-circle.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>

View File

@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>bzit.bomg</RootNamespace> <RootNamespace>bzit.bomg</RootNamespace>
<AssemblyName>bomg</AssemblyName> <AssemblyName>bomg</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion> <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<TargetFrameworkProfile> <TargetFrameworkProfile>
</TargetFrameworkProfile> </TargetFrameworkProfile>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
@ -239,6 +239,7 @@
<EmbeddedResource Include="MainForm.resx"> <EmbeddedResource Include="MainForm.resx">
<DependentUpon>MainForm.cs</DependentUpon> <DependentUpon>MainForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<None Include="app.config" />
<None Include="packages.config" /> <None Include="packages.config" />
<None Include="Properties\Settings.settings"> <None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator> <Generator>SettingsSingleFileGenerator</Generator>