如何创建“表单设计者"? [英] How can I create a "form designer"?

查看:117
本文介绍了如何创建“表单设计者"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要为我计划的改装工具创建类似表单设计器"的东西.您将能够制作组件,然后将其拖动到预制的设计器"上.

I need to create something like a "form desinger" for a modding tool I''m planning. You will be able to make components and then drag them on the pre-made "designer". Any help on this?

推荐答案

您要创建自己的IDE吗?
您可以从以下内容开始:

1.您的表格应具有:
-面板(或其他合适的容器)来保存列表(标签
或图片)可以添加的控件
-一个PropertyGrid,用于显示拖动的控件的属性和
掉了.
-面板/表单,用于保存拖放的控件

2.处理列表中项目的拖放事件,并在拖放时将其添加到面板中.

3.处理MouseDown,Move和Up事件以调整大小和移动添加的控件.
Are you trying to create your own IDE?
Here is something that you can start with:

1. Your form should have:
- a Panel (or any other suitable container) to hold the list (labels
or images) of controls which can be added
- a PropertyGrid to display the properties of the controls dragged and
dropped.
- a Panel/Form to hold the controls which are dragged and dropped

2. Handle the Drag/Drop events for the items in the list and add them to the Panel when dropped.

3. Handle the MouseDown, Move and Up events to enable resizing and moving of the added controls.


您的问题是一个体面的问题,但是认真地想为什么要这样做.除非您遇到使用Visual Studio的严重问题,否则请只使用Visual Studio.
Your question is a decent question, but seriously why would you want to do this. Just use Visual Studio unless you are running into some serious problems using it.


感谢您的回答.我正在为与游戏修改相关的事情制作一个IDE,并且打算使用Visual Studio来制作它.
Thanks for the answers. I''m making an IDE for something related to modding a game, and I''m planning to use Visual Studio to make it.


这篇关于如何创建“表单设计者"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆