上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Mask;type TForm1 = class(TForm) Button1: TButton; Button2: TButton; Edit1: TEdit; Edit2: TEdit; Memo1: TMemo; MaskEdit1: TMaskEdit; MaskEdit2: TMaskEdit; ... 阅读全文
posted @ 2011-12-04 19:30 endsnow 阅读(360) 评论(0) 推荐(0)
摘要: !去掉输入数据开头的空格符>让输入数据的字母都变成大写,直到遇上掩码字符<<让输入数据的字母都变成小写,直到遇上掩码字符><>不限制输入数据字母是大写或小写\若在输入格式内加入某个特殊字符,只要在特殊字符的前面加上此掩码就可以。L允许输入英文字母,而且一定要输入l允许输入英文字母,不一定要输入A允许输入英文字母和阿拉伯数字,一定要输入a允许输入英文字母和阿拉伯数字,不一定要输入C允许输入任何字符,一定要输入c允许输入任何字符,不一定要输入0允许输入阿拉伯数字,一定要输入9允许输入阿拉伯数字,不一定要输入#允许输入阿拉伯数字或正、负号字符:用来分隔时间数据中的 阅读全文
posted @ 2011-12-04 19:17 endsnow 阅读(148) 评论(0) 推荐(0)
摘要: unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton; Edit1: TEdit; Memo1: TMemo; procedure Button1Click(Sender: TObject); procedure FormActivate(Sender: TObject); private ... 阅读全文
posted @ 2011-12-04 16:07 endsnow 阅读(358) 评论(0) 推荐(0)
摘要: 备注框在Delphi 中用 Tmemo 类处理.Tmemo 类是 Tedit 类的衍生类,因此,Tedit 类所具有的属性、事件和方法在 Tmemo 类中都有.另外,为了处理多行文本,Tmemo 类还增加了一些新的属性。(1) CaretPos 属性:用来得到光标在编辑区中的位置.如 Memol. CaretPos.y 表示光标所在行数.(2) Lines 属性:按行处理文本.lines 属性实际上是一个Tstring 类型的对象.用来存放 Memo 对象的文本。Tstrings 类型有一个默认的属性 Strings,定义为:Property Strings[Index: integer]: 阅读全文
posted @ 2011-12-04 15:50 endsnow 阅读(690) 评论(0) 推荐(0)
摘要: unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton; Button2: TButton; Label1: TLabel; Label2: TLabel; procedure Button1Click(Sender: TObject); procedure Button2Click(Se... 阅读全文
posted @ 2011-12-04 15:26 endsnow 阅读(130) 评论(0) 推荐(0)
摘要: Edit 组件以下介绍 Edit 的主要属性。(1) AutoSelect 属性:用于设置编辑框得到焦点时,文本是否自动被选中。(2) AutoSize 属性:决定编辑框是否自动随字体的变化而改变大小。(3) Enable 属性:用来设置编辑框是否能用。(4) BorderSytle 属性:用来设置编辑框的边框类型,取 bsSigle 为单线,取 bsNone 为 无框。(5) MaxLength 属性:用于设置所能接受的最大字符数。(6) PasswordChar 属性:该属性设置非 #0 字符时,将代替用户输入的字符被显示。(7) ReadOnly 属性: 决定编辑框中的文本是否可以编辑。 阅读全文
posted @ 2011-12-04 15:13 endsnow 阅读(710) 评论(0) 推荐(0)
摘要: 对话框是用户与应用程序交换信息的最佳途径之一。使用对话框函数或过程可以调用Delphi 的内部对话框,这种方法具有操作简单及快速的特点。Delphi 提供的内部对话框有如下两种。第一种:信息输出对话框。包括 ShowMessage 过程、ShowMessageFmt 过程、MessageDlg函数、MessageDlgPos 函数和 CreateMessageDialog 函数. 第二种:信息输入对话框. 包括 InputBox 函数和 InputQuery 函数.1. ShowMessage 过程ShowMessage(<信息内容>);说明:( 1) ShowMessage 过程 阅读全文
posted @ 2011-12-04 15:03 endsnow 阅读(384) 评论(0) 推荐(0)
摘要: unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton; Button2: TButton; Label1: TLabel; procedure Button1Click(Sender: TObject); procedure Button2Click(Sender: TObject); pr... 阅读全文
posted @ 2011-12-04 13:25 endsnow 阅读(151) 评论(0) 推荐(0)
摘要: unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton; Button2: TButton; Label1: TLabel; procedure Button1Click(Sender: TObject); procedure Button2Click(Sender: TObject); pr... 阅读全文
posted @ 2011-12-04 13:06 endsnow 阅读(164) 评论(0) 推荐(0)
摘要: 1. TForm 的主要属性窗体组件( TForm)是一种特殊的组件,它在运行时表现为一个窗体,窗体是一个容器构件,它可以包含其他种类的构件,并协同完成应用程序的整体功能.窗体和其他组件一样由属性、事件和方法组成.1) BordcrIcons 属性BordcrIcons 属性用来制定窗体标题栏上的图标,可以设置为下列取值。• biSystemMenu: 可以通过单击标题栏左边的图标或在标题栏上单击右键来显示控制菜单. 控制菜单有时也称为系统菜单.• biMinimize: 在标题栏右边显示最小化按钮.• biMaximize: 在标题栏右边显示最大化按钮.• biHelp: 在标题栏右边显示帮 阅读全文
posted @ 2011-12-04 12:49 endsnow 阅读(654) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 下一页