Skip to content

Commit

Permalink
Snapshot: v0.4-B, Nov 21 2015
Browse files Browse the repository at this point in the history
  • Loading branch information
mazmazz committed Feb 16, 2019
1 parent f012358 commit 8c585c2
Show file tree
Hide file tree
Showing 62 changed files with 6,833 additions and 670 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
obj/
bin/
Backup/
Extra/
NSISInstaller/Files/*
NSISInstaller/Output/*
*.ncb
Expand Down
Binary file added Common/pinapp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Common/unpinapp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Libraries/ShellLink/App.ico
Binary file not shown.
58 changes: 58 additions & 0 deletions Libraries/ShellLink/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
using System.Reflection;
using System.Runtime.CompilerServices;

//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

//
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:

[assembly: AssemblyVersion("1.0.*")]

//
// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
// Use the attributes below to control which key is used for signing.
//
// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
//
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]
120 changes: 120 additions & 0 deletions Libraries/ShellLink/AutoCompleteTextBox.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
using System;
using System.Windows.Forms;
using System.Runtime.InteropServices;

namespace vbAccelerator.Controls.TextBox
{
/// <summary>
/// Adds Shell File System and URL AutoCompletion facilities to
/// a text box
/// </summary>
public class AutoCompleteTextBox : System.Windows.Forms.TextBox
{
#region Unmanaged Code
[Flags]
public enum SHAutoCompleteFlags : uint
{
SHACF_DEFAULT = 0x0, // Currently (SHACF_FILESYSTEM | SHACF_URLALL)
SHACF_FILESYSTEM = 0x1, // This includes the File System as well as the rest of the shell (Desktop\My Computer\Control Panel\)
SHACF_URLHISTORY = 0x2, // URLs in the User's History
SHACF_URLMRU = 0x4, // URLs in the User's Recently Used list.
SHACF_USETAB = 0x8, // Use the tab to move thru the autocomplete possibilities instead of to the next dialog/window control.
SHACF_URLALL = (SHACF_URLHISTORY | SHACF_URLMRU),
SHACF_FILESYS_ONLY = 0x10, // This includes the File System
SHACF_FILESYS_DIRS = 0x20, // Same as SHACF_FILESYS_ONLY except it only includes directories, UNC servers, and UNC server shares.
SHACF_AUTOSUGGEST_FORCE_ON = 0x10000000, // Ignore the registry default and force the feature on.
SHACF_AUTOSUGGEST_FORCE_OFF = 0x20000000, // Ignore the registry default and force the feature off.
SHACF_AUTOAPPEND_FORCE_ON = 0x40000000, // Ignore the registry default and force the feature on. (Also know as AutoComplete)
SHACF_AUTOAPPEND_FORCE_OFF = 0x80000000 // Ignore the registry default and force the feature off. (Also know as AutoComplete)
}

[DllImport("shlwapi.dll")]
private static extern int SHAutoComplete (
IntPtr hwndEdit,
AutoCompleteTextBox.SHAutoCompleteFlags dwFlags );

#endregion

#region Member Variables
private AutoCompleteTextBox.SHAutoCompleteFlags autoCompleteFlags =
SHAutoCompleteFlags.SHACF_FILESYS_ONLY;
private bool flagsSet = false;
private bool handleCreated = false;
#endregion

#region Implementation

/// <summary>
/// Gets/sets the flags controlling automcompletion for the
/// text box
/// </summary>
public AutoCompleteTextBox.SHAutoCompleteFlags AutoCompleteFlags
{
get
{
return this.autoCompleteFlags;
}
set
{
this.autoCompleteFlags = value;
this.flagsSet = true;
if (handleCreated)
{
SetAutoComplete();
}
}
}

protected override void OnHandleCreated ( System.EventArgs e )
{
// call this first as SHAutoComplete may not be supported
// on the OS
base.OnHandleCreated(e);
// don't do anything if we're in design mode:
if (!this.DesignMode)
{
// remember we've created the handle for any future
// get/ set
handleCreated = true;

// if we've provided some flags then start autocompletion:
if (flagsSet)
{
SetAutoComplete();
}
}
}

private void SetAutoComplete()
{
SHAutoComplete(this.Handle, this.autoCompleteFlags);
}

/// <summary>
/// Constructs an auto-complete capable text box but
/// does not automatically start auto-completion.
/// </summary>
public AutoCompleteTextBox() : base()
{
}

/// <summary>
/// Constructs an auto-complete capable text box and
/// starts auto-completion with the specified flags.
/// </summary>
/// <param name="autoCompleteFlags">Flags controlling
/// auto-completion</param>
public AutoCompleteTextBox(
AutoCompleteTextBox.SHAutoCompleteFlags autoCompleteFlags
) : this()
{
// Handle will not be available at this point; we need
// to wait for HandleCreated:
this.autoCompleteFlags = autoCompleteFlags;
this.flagsSet = true;
}

#endregion
}
}

42 changes: 42 additions & 0 deletions Libraries/ShellLink/AutoCompleteTextBox.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8" ?>
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="ResMimeType">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="Version">
<value>1.0.0.0</value>
</resheader>
<resheader name="Reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.3102.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="Writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.3102.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
Loading

0 comments on commit 8c585c2

Please sign in to comment.