fix minor scaling bugs
This commit is contained in:
parent
fd1806f019
commit
833154c8d0
4 changed files with 28 additions and 16 deletions
9
tpDictionary/DefinitionForm.Designer.cs
generated
9
tpDictionary/DefinitionForm.Designer.cs
generated
|
@ -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
|
||||
//
|
||||
|
|
22
tpDictionary/SearchResultsForm.Designer.cs
generated
22
tpDictionary/SearchResultsForm.Designer.cs
generated
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -132,7 +132,4 @@
|
|||
<metadata name="$this.Skin" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="$this.UndoSkinCounterProperty" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>1</value>
|
||||
</metadata>
|
||||
</root>
|
Loading…
Add table
Reference in a new issue