请各位大虾指点,如何能何align有效?

cn422xy 2003-10-10 08:49:09
unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, OleCtrls, SHDocVw;

type
TForm1 = class(TForm)
Panel1: TPanel;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
var
c:twebbrowser;
begin
c:=twebbrowser.Create(nil);
c.ParentWindow:=panel1.Handle;
c.Navigate('about:blank');
c.Align:=alclient; //执行此行程序无效
c.Show;
end;
...全文
24 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
cn422xy 2003-10-10
  • 打赏
  • 举报
回复
to(吴七郎),你的方法好像行不通,不知谁还有更好的方法 :( 多谢!
cow8063 2003-10-10
  • 打赏
  • 举报
回复
c.Parent:=panel1;

看看,还有,好象不用 show的呢
Alanwn 2003-10-10
  • 打赏
  • 举报
回复
关注
IORILI 2003-10-10
  • 打赏
  • 举报
回复
看看
liufuyahong 2003-10-10
  • 打赏
  • 举报
回复
搞不定。只对Width,Height有效
tonylk 2003-10-10
  • 打赏
  • 举报
回复
不行就自己在Form的OnSize()中用代码控制。
VisualLion 2003-10-10
  • 打赏
  • 举报
回复
不行,我也搞不定
cn422xy 2003-10-10
  • 打赏
  • 举报
回复
up
cn422xy 2003-10-10
  • 打赏
  • 举报
回复
怎么没有知道吗?只好自己up了

5,392

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧