推荐个c#的工控图形界面库seesharptools
By
admin
at 2023-07-31 • 1人收藏 • 1078人看过
5 个回复 | 最后更新于 2023-09-21
回复#4 @鸿湖重工业株式会社 :
import win.ui; /*DSG{{*/ var winform = win.form(text="aardio form";right=759;bottom=469) winform.add( button={cls="button";text="Button";left=235;top=355;right=509;bottom=401;z=2}; custom={cls="custom";text="自定义控件";left=240;top=32;right=509;bottom=301;bgcolor=12639424;db=1;dl=1;dr=1;dt=1;z=1} ) /*}}*/ import System.Windows.Forms; import dotNet var formdll = dotNet.load("/SeeSharpTools.JY.GUI.dll"); var Gui = formdll.import("SeeSharpTools.JY.GUI"); var aquaGauge1 = Gui.AquaGauge(); System.Windows.Forms.CreateEmbed(aquaGauge1,winform.custom); aquaGauge1.Max = 120; aquaGauge1.Min = 3; winform.button.oncommand = function(id,event){ aquaGauge1.Value = math.random(3,120); } winform.show(); win.loopMessage();
完整示例代码, 我还是放到顶楼的那个百度网盘里了, 可以去下载.
登录后方可回帖
有没有图表底层绘制原理的资料推荐