Skip to content

Commit

Permalink
UI: SettingBorderStyle, SettingBackgroundImageLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaspider committed Feb 2, 2022
1 parent b3532a0 commit 8ae55e6
Show file tree
Hide file tree
Showing 9 changed files with 250 additions and 79 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
/obj
/bin
/.vs/pd/v15
/.vs
32 changes: 19 additions & 13 deletions App.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,10 @@
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
<userSettings>
<pd.My.MySettings>
<setting name="SettingDB" serializeAs="Xml">
<value>
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<string>test</string>
</ArrayOfString>
</value>
</setting>
<setting name="SettingCodeLength" serializeAs="String">
<value>3</value>
</setting>
Expand Down Expand Up @@ -57,7 +50,7 @@
<value>78</value>
</setting>
<setting name="SettingTextBox" serializeAs="String">
<value/>
<value />
</setting>
<setting name="SettingListboxSelectedIndex" serializeAs="String">
<value>-1</value>
Expand Down Expand Up @@ -92,17 +85,14 @@
<setting name="SettingSplitterWidth" serializeAs="String">
<value>15</value>
</setting>
<setting name="SettingBackgroundImage" serializeAs="String">
<value/>
</setting>
<setting name="SettingFirstLoad" serializeAs="String">
<value>0</value>
</setting>
<setting name="SettingInfiniteLoop" serializeAs="String">
<value>False</value>
</setting>
<setting name="SettingIcon" serializeAs="String">
<value/>
<value />
</setting>
<setting name="SettingWordWrap" serializeAs="String">
<value>True</value>
Expand All @@ -128,6 +118,22 @@
<setting name="SettingSettingClickItemToRun" serializeAs="String">
<value>False</value>
</setting>
<setting name="SettingBackgroundImage" serializeAs="String">
<value />
</setting>
<setting name="SettingBackgroundImageLayout" serializeAs="String">
<value>2</value>
</setting>
<setting name="SettingDB" serializeAs="Xml">
<value>
<ArrayOfString xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<string>test</string>
</ArrayOfString>
</value>
</setting>
<setting name="SettingBorderStyle" serializeAs="String">
<value>4</value>
</setting>
</pd.My.MySettings>
</userSettings>
</configuration>
6 changes: 3 additions & 3 deletions My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Imports System.Runtime.InteropServices
<Assembly: AssemblyDescription("Virtual keyboard assist")>
<Assembly: AssemblyCompany("[email protected]")>
<Assembly: AssemblyProduct("PD")>
<Assembly: AssemblyCopyright("Copyright © 2019")>
<Assembly: AssemblyCopyright("Copyright © 2022")>
<Assembly: AssemblyTrademark("")>

<Assembly: ComVisible(False)>
Expand All @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("1.5.0.6")>
<Assembly: AssemblyFileVersion("1.5.0.6")>
<Assembly: AssemblyVersion("1.6.0.0")>
<Assembly: AssemblyFileVersion("1.6.0.0")>
2 changes: 1 addition & 1 deletion My Project/Resources.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

78 changes: 51 additions & 27 deletions My Project/Settings.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 15 additions & 9 deletions My Project/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="My" GeneratedClassName="MySettings" UseMySettingsClassName="true">
<Profiles />
<Settings>
<Setting Name="SettingDB" Type="System.Collections.Specialized.StringCollection" Scope="User">
<Value Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&lt;string&gt;test&lt;/string&gt;
&lt;/ArrayOfString&gt;</Value>
</Setting>
<Setting Name="SettingCodeLength" Type="System.Int32" Scope="User">
<Value Profile="(Default)">3</Value>
</Setting>
Expand Down Expand Up @@ -83,9 +77,6 @@
<Setting Name="SettingSplitterWidth" Type="System.Int32" Scope="User">
<Value Profile="(Default)">15</Value>
</Setting>
<Setting Name="SettingBackgroundImage" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="SettingFirstLoad" Type="System.Int32" Scope="User">
<Value Profile="(Default)">0</Value>
</Setting>
Expand Down Expand Up @@ -119,5 +110,20 @@
<Setting Name="SettingSettingClickItemToRun" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="SettingBackgroundImage" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="SettingBackgroundImageLayout" Type="System.Int32" Scope="User">
<Value Profile="(Default)">2</Value>
</Setting>
<Setting Name="SettingDB" Type="System.Collections.Specialized.StringCollection" Scope="User">
<Value Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;ArrayOfString xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
&lt;string&gt;test&lt;/string&gt;
&lt;/ArrayOfString&gt;</Value>
</Setting>
<Setting Name="SettingBorderStyle" Type="System.Int32" Scope="User">
<Value Profile="(Default)">4</Value>
</Setting>
</Settings>
</SettingsFile>
79 changes: 79 additions & 0 deletions My Project/app.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!-- UAC Manifest Options
If you want to change the Windows User Account Control level replace the
requestedExecutionLevel node with one of the following.
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
Specifying requestedExecutionLevel element will disable file and registry virtualization.
Remove this element if your application requires this virtualization for backwards
compatibility.
-->
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>

<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- A list of the Windows versions that this application has been tested on
and is designed to work with. Uncomment the appropriate elements
and Windows will automatically select the most compatible environment. -->

<!-- Windows Vista -->
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->

<!-- Windows 7 -->
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->

<!-- Windows 8 -->
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->

<!-- Windows 8.1 -->
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->

<!-- Windows 10 -->
<!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->

</application>
</compatibility>

<!-- Indicates that the application is DPI-aware and will not be automatically scaled by Windows at higher
DPIs. Windows Presentation Foundation (WPF) applications are automatically DPI-aware and do not need
to opt in. Windows Forms applications targeting .NET Framework 4.6 that opt into this setting, should
also set the 'EnableWindowsFormsHighDpiAutoResizing' setting to 'true' in their app.config.
Makes the application long-path aware. See https://docs.microsoft.com/windows/win32/fileio/maximum-file-path-limitation -->
<!--
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
</windowsSettings>
</application>
-->

<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
<!--
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
-->

</assembly>
Loading

0 comments on commit 8ae55e6

Please sign in to comment.