本文整理汇总了C#中Panel.SetAutoHide方法的典型用法代码示例。如果您正苦于以下问题:C# Panel.SetAutoHide方法的具体用法?C# Panel.SetAutoHide怎么用?C# Panel.SetAutoHide使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Panel
的用法示例。
在下文中一共展示了Panel.SetAutoHide方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitMapEditorWidgets
//.........这里部分代码省略.........
pnlAttributes.AddWidget(optLevelBlock);
pnlAttributes.AddWidget(optAssembly);
pnlAttributes.AddWidget(optEvolution);
pnlAttributes.AddWidget(optStory);
pnlAttributes.AddWidget(optLinkShop);
pnlAttributes.AddWidget(optMission);
pnlAttributes.AddWidget(optScriptedSign);
pnlAttributes.AddWidget(optAmbiguous);
pnlAttributes.AddWidget(optSlippery);
pnlAttributes.AddWidget(optSlow);
pnlAttributes.AddWidget(optDropShop);
pnlAttributes.AddWidget(lblDungeonTileValue);
pnlAttributes.AddWidget(nudDungeonTileValue);
#endregion
#region Mapping Widgets
btnMapping = new Button("btnMapping");
btnMapping.Size = new System.Drawing.Size(100, 30);
btnMapping.Location = new Point(0, 0);
btnMapping.Font = Graphics.FontManager.LoadFont("PMU.ttf", 24);
btnMapping.Text = "Mapping";
btnMapping.MouseHoverDelay = 100;
btnMapping.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(btnMapping_Click);
btnMapping.MouseHover += new EventHandler(btnMapping_MouseHover);
Skins.SkinManager.LoadButtonGui(btnMapping);
pnlMapping = new Panel("pnlMapping");
pnlMapping.Size = new Size(150, 190);
pnlMapping.Location = new Point(0, btnMapping.Y + mapEditor_Menu.Y - pnlMapping.Height);
pnlMapping.BackColor = Color.White;
pnlMapping.BorderStyle = SdlDotNet.Widgets.BorderStyle.FixedSingle;
pnlMapping.SetAutoHide();
btnMapProperties = new Button("btnMapProperties");
btnMapProperties.Size = new System.Drawing.Size(100, 30);
btnMapProperties.Location = new Point(DrawingSupport.GetCenter(pnlMapping.Width, btnMapProperties.Width), 10);
btnMapProperties.Font = Graphics.FontManager.LoadFont("tahoma.ttf", 10);
btnMapProperties.Text = "Properties";
btnMapProperties.Click += new EventHandler<MouseButtonEventArgs>(btnMapProperties_Click);
Skins.SkinManager.LoadButtonGui(btnMapProperties);
btnHouseProperties = new Button("btnHouseProperties");
btnHouseProperties.Size = new System.Drawing.Size(100, 30);
btnHouseProperties.Location = new Point(DrawingSupport.GetCenter(pnlMapping.Width, btnMapProperties.Width), 10);
btnHouseProperties.Font = Graphics.FontManager.LoadFont("tahoma.ttf", 10);
btnHouseProperties.Text = "Music";
btnHouseProperties.Click += new EventHandler<MouseButtonEventArgs>(btnHouseProperties_Click);
Skins.SkinManager.LoadButtonGui(btnHouseProperties);
btnLoadMap = new Button("btnLoadMap");
btnLoadMap.Size = new System.Drawing.Size(100, 30);
btnLoadMap.Location = new Point(DrawingSupport.GetCenter(pnlMapping.Width, btnLoadMap.Width), 40);
btnLoadMap.Font = Graphics.FontManager.LoadFont("tahoma.ttf", 10);
btnLoadMap.Text = "Load Map";
btnLoadMap.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(btnLoadMap_Click);
Skins.SkinManager.LoadButtonGui(btnLoadMap);
btnSaveMap = new Button("btnSaveMap");
btnSaveMap.Size = new System.Drawing.Size(100, 30);
btnSaveMap.Location = new Point(DrawingSupport.GetCenter(pnlMapping.Width, btnSaveMap.Width), 70);
btnSaveMap.Font = Graphics.FontManager.LoadFont("tahoma.ttf", 10);
btnSaveMap.Text = "Save Map";
btnSaveMap.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(btnSaveMap_Click);
Skins.SkinManager.LoadButtonGui(btnSaveMap);