TPageControl控件的Tab页头中怎么插入SpeedButton控件?在线等待,谢谢
在 http://expert.csdn.net/Expert/topic/2227/2227115.xml?temp=.8682825
和 http://expert.csdn.net/Expert/topic/2224/2224073.xml?temp=.6878626
也提过。
在 http://expert.csdn.net/Expert/topic/2227/2227115.xml?temp=.8682825
和 http://expert.csdn.net/Expert/topic/2224/2224073.xml?temp=.6878626
也提过。
解决方案 »
- apdcomport设置接收缓冲区的问题
- 请问Delphi7程序发布的问题
- ★★★★再放200 嘿嘿~~★★★★
- 线程设置的问题
- 我用Delphi做了个登陆框的程序,用BDE连数据库(STANDARD),但把它放到另一台机子去不能运行啊!
- 我现在想达到的效果是:在一个类似dbgrid的显示区域里面显示n行n列,每一行的前面有一个checkbox,通过点击checkbox标识该行被选择,画面
- 用database,table连接数据库,可delphi 总是管我要密码,怎么办压?????????
- 请教;关于查询字段!
- 請問再delphi中有沒有將漢字轉換成16進制的函數呢?我只找到inttohex()!!!!!!!!!!!!!!!!!!!
- 有关线程的急问!!
- 填充颜色
- 怎样让窗体跟窗体中的内容(包括按钮、文本框等)跟机器的分辨率同步变大或变小?
procedure TForm1.FormShow(Sender: TObject);
begin
Panel1.Parent := pagecontrol1;
SpeedButton1.Parent := pagecontrol1;
end;
procedure TForm1.PageControl1DrawTab(Control: TCustomTabControl;
TabIndex: Integer; const Rect: TRect; Active: Boolean);
var re: TRect;
begin
re := Control.TabRect(0);
Panel1.Width:= re.Right - re.Left;
Panel1.Height := re.Bottom -re.Top;
control.InsertControl(Panel1);
panel1.Visible := false;
end;
procedure TForm1.Panel1Resize(Sender: TObject);
begin
SpeedButton1.Width := 20;
SpeedButton1.Height := panel1.Height + 2;
end;
begin
action:=cafree;
end;
procedure TForm1.FormShow(Sender: TObject);
begin
Panel1.Parent := pagecontrol1;
SpeedButton1.Parent := pagecontrol1;
end;
procedure TForm1.PageControl1DrawTab(Control: TCustomTabControl;
TabIndex: Integer; const Rect: TRect; Active: Boolean);
var re: TRect;
begin
re := Control.TabRect(0);
Panel1.Width:= re.Right - re.Left;
Panel1.Height := re.Bottom -re.Top;
/////////
control.ReMoveControl(Panel1);
////////
control.InsertControl(Panel1);
panel1.Visible := false;
end;
procedure TForm1.Panel1Resize(Sender: TObject);
begin
SpeedButton1.Width := 20;
SpeedButton1.Height := panel1.Height + 2;
end;
前首先应该从Panel1原来的父控件中删除Panel1。假设它原来放在窗体上,那么也就是加上:
RemoveControl(Panel1);—————————————————————————————————
宠辱不惊,看庭前花开花落,去留无意;毁誉由人,望天上云卷云舒,聚散任风。
—————————————————————————————————