🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: cn.bbs.comp.program
1 messages
1 total messages Started by ���� Thu, 06 Aug 1998 00:00
Re: ��ν����Ŀؼ���FORMCREATEʱ��һ���ʼ����
#306
Author: ����
Date: Thu, 06 Aug 1998 00:00
25 lines
2125 bytes
�� �� DYQ (̫��) �Ĵ������ᵽ: ��
: �� �� skyweb (����) �Ĵ������ᵽ: ��
: : ����Form��Controls���ԣ���һ��Forѭ�������Ǹ�ֵ
: ���Ծ���һЩ��
: ���Թ����Ƕ�����������⣬�����ڵij���ֻ����һ��������ˣ���Ȼ֪����
: ����һ��һ�����������ǣ��Һ�����Ҳ���в������Լ�����ô����£�������

BCB �Ҳ����ã������й�������Ʋ�������Ϥ��������һ��Delphi���룬�ɹ��ο���

procedure TForm1.FromCreate(Sender: TObject);
var
   i: integer;
begin
   for i:=0 to ControlCount-1 do
   if Controls[i] is TCheckBox then
      TCheckBox(Controls[i]).Checked:=false;
end;

�������Delphi����ת����BCB���룬��OK�ˡ�Controls��һ�����飬������ΪTFrom
�����й��������������������ڵĹ�����ControlCount���������Ĵ�С��������
ComponentsҲ���ԣ�ֻҪ�����ϴ����е�Controls�ij�Components,ControlCount��
ΪComponentCount���ɡ�

--
�� ��Դ:���������� BBS bbs.nease.net��[FROM: 202.103.236.137]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads