如何在控制台下使用控件? RT!!最好先讲讲原理,然后举个例子(比如idsmtp或者别的),谢谢了!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 和GUI下面是一样的,不过:idsmtp:=Tidsmtp.Create(nil); var aa:tedit;beginaa:=tedit.create(nil);aa.name:='aa';aa.text:='bb';................aa.free;end; 试举一例:program Project1;{$APPTYPE CONSOLE}uses SysUtils,windows,messages,extctrls;type tc=class private fTimer:TTimer; public procedure timerProc(sender:TObject); constructor create(); end; procedure tc.timerProc(sender:TObject); begin messageBox(0,'l;asdfjasdlf','goomoo',mb_ok); end; constructor tc.create; begin inherited create; fTimer:=TTimer.Create(nil); fTimer.Interval:=1000; fTimer.OnTimer:=timerProc; end;var zjs:TC; s:string;begin zjs:=Tc.create; zjs.timerProc(nil);end. 是啊是啊,一样的用。create时,参数写nil就OK 通过滚轮使鼠标正下方控件的滚动条移动 美图秀秀那样的软件,用什么控件下的? 最后一句怎么会编译错误呢? ★有没有办法不用OnDrawCell来设置StringGrid中某个单元格的背景颜色,和文字颜色??? 急!!!如何在程序里面实现(XP系统中文发音)在线等急!! 请问? 求一个查询带下拉菜单的组件,望大虾们指导下。 怎样得到一个程序调用了那些DLL。 软件发布:心动网管软件 这里的人气好旺啊 使用循环给多个控件赋值 我有一个小小的问题求教~
idsmtp:=Tidsmtp.Create(nil);
aa:tedit;
begin
aa:=tedit.create(nil);
aa.name:='aa';
aa.text:='bb';
................
aa.free;
end;
SysUtils,windows,messages,extctrls;type
tc=class
private
fTimer:TTimer;
public
procedure timerProc(sender:TObject);
constructor create();
end; procedure tc.timerProc(sender:TObject);
begin
messageBox(0,'l;asdfjasdlf','goomoo',mb_ok);
end; constructor tc.create;
begin
inherited create;
fTimer:=TTimer.Create(nil);
fTimer.Interval:=1000;
fTimer.OnTimer:=timerProc;
end;var
zjs:TC;
s:string;
begin
zjs:=Tc.create;
zjs.timerProc(nil);
end.