废话不多数,先上效果图和代码: 包装GridControl控件 cs using DevExpress.Xpf.Data; using DevExpress.Xpf.Grid; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.D…
我们知道使用Delphi快速开发,很大的一方面就是其强大的VCL控件,另外丰富的第三方控件也使得Delphi程序员更加快速的开发出所需要的程序.在此不特别介绍一些概念,只记录自己学习开发控件的步骤.假设我们要开发一个画直线的控件,那么我们从下面开始做:1.菜单栏→Component→New Component,在弹出的对话框中按照提示添加: Ancestor type 父类:TGraphicControl [Controls]Class Name 类名:TLineToPalette Page…
实例代码: Dim k As ToolTip k = New ToolTip() k.AutoPopDelay = '显示出气泡后的延时时间(毫秒) k.InitialDelay = '出现前的延时(毫秒) k.ToolTipTitle = "提示" '提示信息标题 k.SetToolTip([控件名], "按D键删除选定项") '提示信息内容…
我们知道使用Delphi快速开发,很大的一方面就是其强大的VCL控件,另外丰富的第三方控件也使得Delphi程序员更加快速的开发出所需要的程序.在此不特别介绍一些概念,只记录自己学习开发控件的步骤.假设我们要开发一个画直线的控件,那么我们从下面开始做:1.菜单栏→Component→New Component,在弹出的对话框中按照提示添加: Ancestor type 父类:TGraphicControl [Controls]Class Name 类名:TLineToPalette Page…
msflxgrd.ocx - Microsoft FlexGrid Control 原先使用的是msflxgrd控件,但是使用过程中发现,Cell中的中文字符串在英文系统下显示“??”,查找资料发现该表格控件对Unicode的支持不够好. mshflxgd.ocx - Microsoft Hierarchical FlexGrid Control 于是,换成使用增强版的mshflxgd控件. 0.下载MSHFLXGD.OCX,并注册: Regsvr32 MSHFLXGD.OCX 1.新建基于对话…
List<string> list = new List<string>(); for (int k = 0; k < RepeaterList.Items.Count; k++) { //根据控件id获得控件对象,ckSelect是checkBox控件的id CheckBox chksel = (CheckBox)RepeaterList.Items[k].FindControl("ckSelect"); if (chksel != null) { if…