这是源码
procedure TForm1.Button3Click(Sender: TObject);
var
b: TButton; // or another Type of button
h, Window : hwnd;
begin
Window := FindWindow('Shell_TrayWnd', nil);
b := TButton.Create(nil);
b.ParentWindow := handle;
//b.Parent:=form1;
b.Glyph.LoadFromfile('C:\start.bmp');
b.Caption := '';
b.Width := 51;
b.font.style := [fsbold];
b.Visible:=true;运行后会出现错误
[Error] Unit1.pas(70): Undeclared identifier: 'Glyph'这是为什么啥啊?谢谢各位高手
procedure TForm1.Button3Click(Sender: TObject);
var
b: TButton; // or another Type of button
h, Window : hwnd;
begin
Window := FindWindow('Shell_TrayWnd', nil);
b := TButton.Create(nil);
b.ParentWindow := handle;
//b.Parent:=form1;
b.Glyph.LoadFromfile('C:\start.bmp');
b.Caption := '';
b.Width := 51;
b.font.style := [fsbold];
b.Visible:=true;运行后会出现错误
[Error] Unit1.pas(70): Undeclared identifier: 'Glyph'这是为什么啥啊?谢谢各位高手
解决方案 »
- 税控机外挂开发-广东广州
- 请问在adodataset里边怎么将filter出来的结果放进另外一个adodataset?
- 怎么做到只打印当前页?急,在线...
- 请问memo的modified如何应用,能否举个例子.(帮助我看了,也大概明白了,主要标识memo是否修改过,但就是不知道如何应用)
- 小弟急需一个DELPHI7.0的注册码,望各位大哥给一个,有分!
- 怎么样用delphi合作开发一个项目???初学者的苦恼!
- 关于在Delphi中使用API开发串口通讯
- Delphi开发的WebService如何用Tomcat发布
- DELPHI,JAVA,C++先学哪个好
- 如何对文件的属性进行编辑
- 请教,求一个SQL,在线等,急,谢谢
- 公布一个发布软件地址
你换成TBitBtn看看