2023-08-21 15:08:47
勇哥注:阀门控件可用于组态页面,构建自动化逻辑的控制面板。基本套路就是用GDI代码进行绘制。下图是组态页面:下图是阀门控件的绘制效果。它有横向与竖向两种形态。注意多边形的5个点如下:其它没什么好讲的。源码:using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Draw...
2023-05-23 22:52:44
勇哥注:所谓的基类控件,就是不从其它控件继承的,而是继承UserControl的控件。控件外观如下:此控件有如下5个属性:有关用户控件,下面这篇文章讲得很清楚:https://blog.csdn.net/sl1990129/article/details/78959264 源码:using System;
using System.Collections.Generic;
using Sys...