Delphi编程中资源文件的应用/转自http://chamlly.spaces.live.com/blog/cns!548f73d8734d3acb!236.entry一、引子:现在的Windows应用程序几乎都使用图标、图片、光标、声音等,我们称它们为资源(Resource)。最简单的使用资源的... Read More
posted @ 2015-08-29 19:44 findumars Views(479) Comments(0) Diggs(0)
大家都认为,C语言之所以强大,以及其自由性,很大部分体现在其灵活的指针运用上。因此,说指针是C语言的灵魂,一点都不为过。同时,这种说法也让很多人产生误解,似乎只有C语言的指针才能算指针。Basic不支持指针,在此不论。其实,Pascal语言本身也是支持指针的。从最初的Pascal发展至今的Objec... Read More
posted @ 2015-08-29 19:15 findumars Views(690) Comments(0) Diggs(0)
bool是LongBool类型。 Delphi中定义了四种布尔类型:Boolean,ByteBool,WordBool和LongBool。后面三种布尔类型是为了与其他语言兼容而引入的,一般情况下建议使用Boolean类型。这四种类型的布尔值占用内存的数量如下:Boolean 1 ByteByteBo Read More
posted @ 2015-08-29 19:10 findumars Views(1334) Comments(0) Diggs(0)
一、初始化控件状态 procedure TForm7.FormCreate(Sender: TObject); begin with StringGrid1 do begin ColWidths[0] := 15; Cells[1, 0] := 'Combobox'; ColWidths[1] := Read More
posted @ 2015-08-29 09:46 findumars Views(173) Comments(0) Diggs(0)
Delphi et les DFM Depuis la toute première version de Delphi, celui-ci intègre des fichiers à l'extension DFM pour gérer les fiches créées dans le des Read More
posted @ 2015-08-29 09:45 findumars Views(529) Comments(0) Diggs(0)