C#Windows窗体界面设计_攻击决策项目_02_设计窗体_02_子窗体
2013-10-22 13:51
330 查看
Author: binzhouweichao@163.com
Copyright (c) 2013, Liu Xiaojian@BIT, All Rights Reserved.
接上。
2. 欢迎界面子窗体
为项目AttackDecision添加新的Windows窗体,命名为WelcomeForm。修改属性如下:
注:将ControlBox置为false,则右上角的调整窗口大小和关闭的按钮就会消失。
为了防止双击标题栏使得窗口最大化,并且使得窗体不能更改大小,设置属性FormBorderStyle为FixedSingle,MaxBox和MinBox为false。
2.1 添加按钮Button
添加两个按钮,分别为进入Login和退出Exit。
位置自选。
button1属性修改:
button2属性修改:
2.2 添加背景图片
理论上,应该对欢迎界面添加图片和文字描述。现在还没有素材。图片大小约为590*270,会自动缩放,稍微大点也无所谓。
由于程序尚未修改,所以只能在设计图上截图。
3. 参数设置子窗体
为AttackDecision项目添加Windows窗体,命名为ParamsForm。
修改属性如下:
3.1 添加雷点参数设置
添加一个GroupBox,用于设置雷点参数。
在里面添加四个Label和四个TextBox,分别修改属性如下:
Label:
TextBox:
3.2 添加仿真场景大小设置参数GroupBox
属性:
添加两个Label,两个TextBox。
Label:
TextBox:
3.3 添加按钮Button
添加两个按钮,一个用于确定OK,一个用于取消Cancel。位置自选。
属性:
效果图:
4. 目标信息设置子窗体
给项目AttackDecision添加新的Windows窗体,命名为TargetForm。
4.1 添加目标参数设置GroupBox
属性修改:
添加5个Label,4个TextBox。
属性如下:
Label:
TextBox:
4.2 添加两个按钮Button
用于确定或取消设置。
位置自选,属性如下:
效果图:
Copyright (c) 2013, Liu Xiaojian@BIT, All Rights Reserved.
接上。
2. 欢迎界面子窗体
为项目AttackDecision添加新的Windows窗体,命名为WelcomeForm。修改属性如下:
Text | Welcome - Attack Decision |
Size | 600, 200 |
StartPosition | CenterScreen |
ControlBox | false |
FormBorder | FixedSingle |
MaximizeBox | False |
MinimizeBox | False |
为了防止双击标题栏使得窗口最大化,并且使得窗体不能更改大小,设置属性FormBorderStyle为FixedSingle,MaxBox和MinBox为false。
2.1 添加按钮Button
添加两个按钮,分别为进入Login和退出Exit。
位置自选。
button1属性修改:
(Name) | welcomeLoginButton |
Text | Login |
(Name) | welcomeExitButton |
Text | Exit |
理论上,应该对欢迎界面添加图片和文字描述。现在还没有素材。图片大小约为590*270,会自动缩放,稍微大点也无所谓。
由于程序尚未修改,所以只能在设计图上截图。
3. 参数设置子窗体
为AttackDecision项目添加Windows窗体,命名为ParamsForm。
修改属性如下:
StartPosition | CenterScreen |
ControlBox | False |
Text | Params Setting |
FormBorderStyle | FixedSingle |
Size | 300, 450 |
MaximizeBox | false |
MinimizeBox | false |
添加一个GroupBox,用于设置雷点参数。
(Name) | mineParamsGroupBox |
Location | 12, 12 |
Size | 270, 136 |
Text | Mine Params Setting: |
Label:
(Name) | minePointCountsLabel |
Location | 7, 25 |
Text | Mine Point Counts: |
(Name) | mineCommunicationLabel |
Location | 7, 52 |
Text | Communication Range: |
(Name) | mineDetectionLabel |
Location | 7, 79 |
Text | Detection Range: |
(Name) | mineAttackLabel |
Location | 7, 106 |
Text | Attack Range: |
(Name) | minePointCountsTextBox |
Location | 146, 21 |
Text | 7 |
(Name) | mineCommunicationTextBox |
Location | 146, 48 |
Text | 200 |
(Name) | mineDetectionTextBox |
Location | 146, 75 |
Text | 300 |
(Name) | mineAttackTextBox |
Location | 146, 102 |
Text | 100 |
属性:
(Name) | simulationSceneParamsGroupBox |
Location | 12, 175 |
Size | 270, 86 |
Text | Simulation Scene Params Setting: |
Label:
(Name) | simulationWidthLabel |
Location | 7, 27 |
Text | Width: |
(Name) | simulationHeightLabel |
Location | 7, 55 |
Text | Height: |
(Name) | simulationWidthTextBox |
Location | 146, 23 |
Text | 1000 |
(Name) | simulationHeightTextBox |
Location | 146, 51 |
Text | 1000 |
添加两个按钮,一个用于确定OK,一个用于取消Cancel。位置自选。
属性:
(Name) | paramsSettingIOkButton |
Location | 45, 300 |
Text | OK |
(Name) | paramsSettingCancelButton |
Location | 160, 300 |
Text | Cancel |
4. 目标信息设置子窗体
给项目AttackDecision添加新的Windows窗体,命名为TargetForm。
StartPosition | CenterScreen |
ControlBox | False |
FormBorderStyle | FixedSingle |
Text | Target Setting |
Size | 350, 300 |
MaximizeBox | false |
MinimizeBox | false |
属性修改:
(Name) | targetParamsGroupBox |
Location | 12, 12 |
Size | 320, 200 |
Text | Target Params Setting: |
属性如下:
Label:
(Name) | targetStartPositionLabel |
Location | 7, 24 |
Text | Start Position: |
(Name) | targetStartPositionXLabel |
Location | 150, 50 |
Text | X: |
(Name) | targetStartPositionYLabel |
Location | 150, 83 |
Text | Y: |
(Name) | targetCurrentSpeedLabel |
Location | 7, 116 |
Text | Current Speed (v0): |
(Name) | targetCurrentDirectionLabel |
Location | 7, 149 |
Text | Current Direction (ΔY/ΔX): |
(Name) | targetStartPositionXTextBox |
Location | 190, 46 |
Text | -500 |
(Name) | targetStartPositionYTextBox |
Location | 190, 79 |
Text | 500 |
(Name) | targetCurrentSpeedTextBox |
Location | 190, 112 |
Text | 1 |
(Name) | targetCurrentDirectionTextBox |
Location | 190, 145 |
Text | -1 |
用于确定或取消设置。
位置自选,属性如下:
(Name) | targetSettingOkButton |
Location | 80, 230 |
Text | OK |
(Name) | targetSettingCancelButton |
Location | 200, 230 |
Text | Cancel |
相关文章推荐
- C#Windows窗体界面设计_攻击决策项目_02_设计窗体_01_主窗体
- C#Windows窗体界面设计_攻击决策项目_02_设计窗体_04_修订主窗体工具栏和状态栏
- C#Windows窗体界面设计_攻击决策项目_03_数据绘图_02_修订坐标轴和ParamsForm文本框数据
- C#Windows窗体界面设计_攻击决策项目_02_设计窗体_03_设置窗体弹出退出顺序
- C#Windows窗体界面设计_攻击决策项目_03_数据绘图_01_绘制坐标轴_修订ParamsForm
- C#Windows窗体界面设计_攻击决策项目_01_系统架构
- C#Windows窗体界面设计_攻击决策项目_03_数据绘图_03_绘制雷点
- C#Windows窗体界面设计_攻击决策项目_真实轨迹RealTrack
- C#Windows窗体界面设计_02_绘制三角函数_多点作图法_全局变量思想
- 窗体界面设计02
- C#Windows窗体界面设计_02_绘制三角函数_多点作图法
- C#Windows窗体界面设计_05_自定义函数 外部类访问读写窗体类的控件的私有属性
- C#Windows窗体界面设计_01_绘制三角函数_附强制类型转换
- 界面设计02 - 零基础入门学习Delphi43
- C#Windows窗体界面设计_03_坐标系平移 旋转 镜像
- C#界面设计之窗体绘制
- C#Windows窗体界面设计_06_通过调整坐标系来调整数据
- 1.窗体与界面设计-导航菜单界面
- 02,需求 ,jfinal,项目要求和数据库设计
- 1.窗体与界面设计-设置窗体位置