From 833154c8d0ba5557334e825c6adc60512544105d Mon Sep 17 00:00:00 2001 From: kawaiizenbo <48113593+kawaiizenbo@users.noreply.github.com> Date: Fri, 2 Sep 2022 19:00:13 -0700 Subject: [PATCH 1/4] fix minor scaling bugs --- tpDictionary/DefinitionForm.Designer.cs | 9 +++++---- tpDictionary/SearchResultsForm.Designer.cs | 22 +++++++++++++--------- tpDictionary/SearchResultsForm.cs | 10 ++++++++++ tpDictionary/SearchResultsForm.resx | 3 --- 4 files changed, 28 insertions(+), 16 deletions(-) diff --git a/tpDictionary/DefinitionForm.Designer.cs b/tpDictionary/DefinitionForm.Designer.cs index 7438805..6396ff5 100644 --- a/tpDictionary/DefinitionForm.Designer.cs +++ b/tpDictionary/DefinitionForm.Designer.cs @@ -62,7 +62,7 @@ this.wordLabel.Font = new System.Drawing.Font("Segoe Condensed", 14F, System.Drawing.FontStyle.Bold); this.wordLabel.Location = new System.Drawing.Point(3, 0); this.wordLabel.Name = "wordLabel"; - this.wordLabel.Size = new System.Drawing.Size(276, 30); + this.wordLabel.Size = new System.Drawing.Size(260, 30); this.wordLabel.Text = "word"; // // typeLabel @@ -72,7 +72,7 @@ this.typeLabel.Font = new System.Drawing.Font("Segoe Condensed", 8F, System.Drawing.FontStyle.Regular); this.typeLabel.Location = new System.Drawing.Point(3, 30); this.typeLabel.Name = "typeLabel"; - this.typeLabel.Size = new System.Drawing.Size(276, 20); + this.typeLabel.Size = new System.Drawing.Size(260, 20); this.typeLabel.Text = "type"; // // definitionLabel @@ -108,9 +108,10 @@ // spChara // this.spChara.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.spChara.Location = new System.Drawing.Point(285, 3); + this.spChara.Location = new System.Drawing.Point(269, 3); this.spChara.Name = "spChara"; - this.spChara.Size = new System.Drawing.Size(32, 32); + this.spChara.Size = new System.Drawing.Size(48, 48); + this.spChara.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; // // DefinitionForm // diff --git a/tpDictionary/SearchResultsForm.Designer.cs b/tpDictionary/SearchResultsForm.Designer.cs index 817ca40..856f180 100644 --- a/tpDictionary/SearchResultsForm.Designer.cs +++ b/tpDictionary/SearchResultsForm.Designer.cs @@ -30,9 +30,9 @@ private void InitializeComponent() { this.mainMenu1 = new System.Windows.Forms.MainMenu(); - this.wordsListView = new System.Windows.Forms.ListView(); this.backButton = new System.Windows.Forms.MenuItem(); this.definitionButton = new System.Windows.Forms.MenuItem(); + this.wordsListView = new System.Windows.Forms.ListView(); this.sitelenPonaList = new System.Windows.Forms.ImageList(); this.SuspendLayout(); // @@ -41,14 +41,6 @@ this.mainMenu1.MenuItems.Add(this.backButton); this.mainMenu1.MenuItems.Add(this.definitionButton); // - // wordsListView - // - this.wordsListView.LargeImageList = this.sitelenPonaList; - this.wordsListView.Location = new System.Drawing.Point(0, 0); - this.wordsListView.Name = "wordsListView"; - this.wordsListView.Size = new System.Drawing.Size(320, 186); - this.wordsListView.TabIndex = 0; - // // backButton // this.backButton.Text = "Back"; @@ -59,6 +51,18 @@ this.definitionButton.Text = "Definition"; this.definitionButton.Click += new System.EventHandler(this.definitionButton_Click); // + // wordsListView + // + this.wordsListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.wordsListView.LargeImageList = this.sitelenPonaList; + this.wordsListView.Location = new System.Drawing.Point(0, 0); + this.wordsListView.Name = "wordsListView"; + this.wordsListView.Size = new System.Drawing.Size(320, 186); + this.wordsListView.TabIndex = 0; + this.wordsListView.ItemActivate += new System.EventHandler(this.wordsListView_ItemActivate); + // // sitelenPonaList // this.sitelenPonaList.ImageSize = new System.Drawing.Size(32, 32); diff --git a/tpDictionary/SearchResultsForm.cs b/tpDictionary/SearchResultsForm.cs index 24a8254..e7e7ca7 100644 --- a/tpDictionary/SearchResultsForm.cs +++ b/tpDictionary/SearchResultsForm.cs @@ -25,6 +25,11 @@ namespace tpDictionary } private void definitionButton_Click(object sender, EventArgs e) + { + defineWord(); + } + + private void defineWord() { if (wordsListView.SelectedIndices.Count != 0) { @@ -66,5 +71,10 @@ namespace tpDictionary } return false; } + + private void wordsListView_ItemActivate(object sender, EventArgs e) + { + defineWord(); + } } } \ No newline at end of file diff --git a/tpDictionary/SearchResultsForm.resx b/tpDictionary/SearchResultsForm.resx index 66bf7c4..9a63f39 100644 --- a/tpDictionary/SearchResultsForm.resx +++ b/tpDictionary/SearchResultsForm.resx @@ -132,7 +132,4 @@ False - - 1 - \ No newline at end of file From 7e1ff654fcea680763342af2f65bb51e95d59043 Mon Sep 17 00:00:00 2001 From: KawaiiZenbo <48113593+kawaiizenbo@users.noreply.github.com> Date: Fri, 2 Sep 2022 19:02:58 -0700 Subject: [PATCH 2/4] Update README.md --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f4901dd..55f41ee 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # tpDictionary Toki Pona Dictionary for Windows Mobile 6/6.1/6.5 +Made with Visual Studio 2008 and .NET Compact Framework 2.0 ## Compilation Instructions ### Required software (not needed for normal use, just download from releases) @@ -8,9 +9,12 @@ Toki Pona Dictionary for Windows Mobile 6/6.1/6.5 1. [Windows Mobile 6 Standard SDK Refresh](https://www.microsoft.com/en-us/download/details.aspx?id=6135) ([Archived copy](http://web.archive.org/web/20220415150412/https://www.microsoft.com/en-us/download/details.aspx?id=6135)) ### If you care enough to compile this yourself, you probably already know how to open and build a project in VS, it works the same as in modern versions -## Sitelen Pona font -http://musilili.net/linja-pona/ +## Sitelen Pona font +http://musilili.net/linja-pona/ ## Official toki pona books [Toki Pona: The Language of Good - "pu"](https://www.amazon.com/Toki-Pona-Language-Sonja-Lang/dp/0978292308) [Toki Pona Dictionary - "ku"](https://www.amazon.com/Toki-Pona-Dictionary-Official/dp/0978292367) + +## Program image +![Dictionary on Samsung Intrepid](https://user-images.githubusercontent.com/48113593/188251592-00a91bc9-1db7-4ec9-9f0d-5e2a9e225a25.JPG) From eadf441c59d5a0a862ae0204227a4ec2ea4616ea Mon Sep 17 00:00:00 2001 From: KawaiiZenbo <48113593+kawaiizenbo@users.noreply.github.com> Date: Fri, 2 Sep 2022 19:48:29 -0700 Subject: [PATCH 3/4] Update README.md --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 55f41ee..c2ae6b8 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,14 @@ # tpDictionary -Toki Pona Dictionary for Windows Mobile 6/6.1/6.5 +Toki Pona Dictionary for Windows Mobile +Compatible with Windows Mobile 5/6.0/6.1/6.5 Made with Visual Studio 2008 and .NET Compact Framework 2.0 +## Use instrtuctions +1. Install [.NET Compact Framework 2.0](https://archive.org/details/netcompact2.0) if on Windows Mobile 5 +1. Copy executable to device or SD/CF card +1. Open application from file explorer +1. Application may take a while to start + ## Compilation Instructions ### Required software (not needed for normal use, just download from releases) 1. Windows XP Service Pack 2 or later (Windows 11 (latest) works!!) From 5fba941c2f1f8a53623114476a2b02f77fc39d8a Mon Sep 17 00:00:00 2001 From: jornmann Date: Sat, 3 Sep 2022 10:12:49 +0300 Subject: [PATCH 4/4] fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c2ae6b8..46dc917 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Toki Pona Dictionary for Windows Mobile Compatible with Windows Mobile 5/6.0/6.1/6.5 Made with Visual Studio 2008 and .NET Compact Framework 2.0 -## Use instrtuctions +## Use instructions 1. Install [.NET Compact Framework 2.0](https://archive.org/details/netcompact2.0) if on Windows Mobile 5 1. Copy executable to device or SD/CF card 1. Open application from file explorer