mirror of
https://github.com/LorenzCK/OnTopReplica.git
synced 2024-05-21 04:43:55 +12:00
Fixed sidepanels in design mode.
This commit is contained in:
parent
a11e50c8b4
commit
6cf04359d2
|
@ -26,7 +26,8 @@ namespace OnTopReplica {
|
|||
|
||||
//Add and show
|
||||
_sidePanelContainer.Controls.Add(panel);
|
||||
_sidePanelContainer.Visible = _sidePanelContainer.Enabled = true;
|
||||
_sidePanelContainer.Enabled = true;
|
||||
_sidePanelContainer.Show();
|
||||
panel.Show();
|
||||
|
||||
int intHorzMargin = panel.Margin.Horizontal + _sidePanelContainer.Padding.Horizontal; //internal margins for sidepanel
|
||||
|
@ -85,8 +86,8 @@ namespace OnTopReplica {
|
|||
_sidePanelContainer.Visible = _sidePanelContainer.Enabled = false;
|
||||
|
||||
//Free panel
|
||||
_currentSidePanel = null;
|
||||
_currentSidePanel.Dispose();
|
||||
_currentSidePanel = null;
|
||||
|
||||
//Resize
|
||||
MinimumSize = new Size(20, 20);
|
||||
|
|
|
@ -151,11 +151,17 @@
|
|||
<Compile Include="SidePanels\GroupSwitchPanel.Designer.cs">
|
||||
<DependentUpon>GroupSwitchPanel.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Strings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Strings.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WindowSeekers\BaseWindowSeeker.cs" />
|
||||
<Compile Include="WindowSeekers\ByClassWindowSeeker.cs" />
|
||||
<Compile Include="WindowSeekers\ByTitleWindowSeeker.cs" />
|
||||
<Compile Include="WindowSeekers\RestoreWindowSeeker.cs" />
|
||||
<Compile Include="WindowSeekers\TaskWindowSeeker.cs" />
|
||||
<EmbeddedResource Include="Strings.ru.resx" />
|
||||
<None Include="Native\ITaskBarList.cs" />
|
||||
<Compile Include="Native\InputMethods.cs" />
|
||||
<Compile Include="Native\MessagingMethods.cs" />
|
||||
|
@ -195,11 +201,6 @@
|
|||
<Compile Include="Platforms\WindowsSeven.cs" />
|
||||
<Compile Include="Platforms\WindowsVista.cs" />
|
||||
<Compile Include="Platforms\WindowsXp.cs" />
|
||||
<Compile Include="Strings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Strings.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FocusedTextBox.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
|
@ -233,7 +234,9 @@
|
|||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Strings.da.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Strings.de.resx" />
|
||||
<EmbeddedResource Include="Strings.es.resx" />
|
||||
<EmbeddedResource Include="Strings.fi.resx" />
|
||||
<EmbeddedResource Include="Strings.it.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Strings.it.Designer.cs</LastGenOutput>
|
||||
|
@ -252,6 +255,9 @@
|
|||
<DependentUpon>RegionPanel.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Strings.no.resx" />
|
||||
<EmbeddedResource Include="Strings.pt-BR.resx" />
|
||||
<EmbeddedResource Include="Strings.pt.resx" />
|
||||
<EmbeddedResource Include="Strings.resx">
|
||||
<LastGenOutput>Strings.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
|
@ -280,11 +286,6 @@
|
|||
</Compile>
|
||||
<Compile Include="StoredRegion.cs" />
|
||||
<Compile Include="StoredRegionArray.cs" />
|
||||
<Compile Include="Strings.it.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Strings.it.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ThumbnailPanel.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
|
@ -388,72 +389,72 @@
|
|||
<ItemGroup>
|
||||
<PublishFile Include="Assets\icon.ico">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Exclude</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Exclude</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>File</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="Assets\screenshot-icon.ico">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Exclude</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Exclude</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>File</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="Assets\window_multiple16.ico">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Exclude</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Exclude</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>File</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="Assets\xiao_arrow.png">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Exclude</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Exclude</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>File</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="cs\OnTopReplica.resources">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Satellite</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="da\OnTopReplica.resources">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Satellite</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="it\OnTopReplica.resources">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Satellite</FileType>
|
||||
</PublishFile>
|
||||
</ItemGroup>
|
||||
|
|
|
@ -10,8 +10,12 @@ namespace OnTopReplica {
|
|||
/// </summary>
|
||||
class SidePanel : UserControl {
|
||||
|
||||
public SidePanel() {
|
||||
Dock = DockStyle.Fill;
|
||||
protected override void OnCreateControl() {
|
||||
if (!DesignMode) {
|
||||
Dock = DockStyle.Fill;
|
||||
}
|
||||
|
||||
base.OnCreateControl();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
22
OnTopReplica/SidePanels/GroupSwitchPanel.Designer.cs
generated
22
OnTopReplica/SidePanels/GroupSwitchPanel.Designer.cs
generated
|
@ -41,7 +41,7 @@
|
|||
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox1.Location = new System.Drawing.Point(0, 0);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(961, 592);
|
||||
this.groupBox1.Size = new System.Drawing.Size(283, 337);
|
||||
this.groupBox1.TabIndex = 1;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Group switch mode:";
|
||||
|
@ -50,16 +50,17 @@
|
|||
//
|
||||
this.labelStatus.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.labelStatus.Location = new System.Drawing.Point(3, 543);
|
||||
this.labelStatus.Location = new System.Drawing.Point(3, 288);
|
||||
this.labelStatus.Name = "labelStatus";
|
||||
this.labelStatus.Size = new System.Drawing.Size(952, 17);
|
||||
this.labelStatus.Size = new System.Drawing.Size(274, 17);
|
||||
this.labelStatus.TabIndex = 3;
|
||||
this.labelStatus.Text = "-";
|
||||
this.labelStatus.TextAlign = System.Drawing.ContentAlignment.BottomRight;
|
||||
//
|
||||
// buttonCancel
|
||||
//
|
||||
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonCancel.Location = new System.Drawing.Point(885, 563);
|
||||
this.buttonCancel.Location = new System.Drawing.Point(207, 308);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(70, 23);
|
||||
this.buttonCancel.TabIndex = 2;
|
||||
|
@ -71,7 +72,7 @@
|
|||
//
|
||||
this.buttonEnable.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonEnable.Image = global::OnTopReplica.Properties.Resources.xiao_ok;
|
||||
this.buttonEnable.Location = new System.Drawing.Point(745, 563);
|
||||
this.buttonEnable.Location = new System.Drawing.Point(67, 308);
|
||||
this.buttonEnable.Name = "buttonEnable";
|
||||
this.buttonEnable.Size = new System.Drawing.Size(134, 23);
|
||||
this.buttonEnable.TabIndex = 1;
|
||||
|
@ -89,28 +90,29 @@
|
|||
this.colName});
|
||||
this.listWindows.FullRowSelect = true;
|
||||
this.listWindows.GridLines = true;
|
||||
this.listWindows.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
|
||||
this.listWindows.HideSelection = false;
|
||||
this.listWindows.LabelWrap = false;
|
||||
this.listWindows.Location = new System.Drawing.Point(6, 19);
|
||||
this.listWindows.Name = "listWindows";
|
||||
this.listWindows.Size = new System.Drawing.Size(949, 521);
|
||||
this.listWindows.Size = new System.Drawing.Size(271, 266);
|
||||
this.listWindows.TabIndex = 0;
|
||||
this.listWindows.UseCompatibleStateImageBehavior = false;
|
||||
this.listWindows.View = System.Windows.Forms.View.Details;
|
||||
this.listWindows.View = System.Windows.Forms.View.List;
|
||||
//
|
||||
// colName
|
||||
//
|
||||
this.colName.Text = global::OnTopReplica.Strings.GroupSwitchModeWindows;
|
||||
this.colName.Width = 220;
|
||||
this.colName.Width = 187;
|
||||
//
|
||||
// GroupSwitchPanel
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.MinimumSize = new System.Drawing.Size(220, 220);
|
||||
this.MinimumSize = new System.Drawing.Size(240, 240);
|
||||
this.Name = "GroupSwitchPanel";
|
||||
this.Size = new System.Drawing.Size(961, 592);
|
||||
this.Size = new System.Drawing.Size(283, 337);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
|
|
8
OnTopReplica/SidePanels/RegionPanel.Designer.cs
generated
8
OnTopReplica/SidePanels/RegionPanel.Designer.cs
generated
|
@ -69,7 +69,7 @@
|
|||
this.groupBox1.Size = new System.Drawing.Size(184, 170);
|
||||
this.groupBox1.TabIndex = 0;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = Strings.RegionsTitle;
|
||||
this.groupBox1.Text = "Regions:";
|
||||
//
|
||||
// textRegionName
|
||||
//
|
||||
|
@ -194,7 +194,7 @@
|
|||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(38, 13);
|
||||
this.label6.TabIndex = 9;
|
||||
this.label6.Text = Strings.RegionsHeight;
|
||||
this.label6.Text = "Height";
|
||||
//
|
||||
// label7
|
||||
//
|
||||
|
@ -204,7 +204,7 @@
|
|||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(35, 13);
|
||||
this.label7.TabIndex = 8;
|
||||
this.label7.Text = Strings.RegionsWidth;
|
||||
this.label7.Text = "Width";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
|
@ -234,7 +234,7 @@
|
|||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(76, 13);
|
||||
this.label1.TabIndex = 3;
|
||||
this.label1.Text = Strings.RegionsCurrentRegion;
|
||||
this.label1.Text = "Current region:";
|
||||
//
|
||||
// buttonDelete
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue