Hi, this is my first topic/post here, so please be gentle
For the last 3 days I have this problem with Delphi 7's TWebBrowser Component.
I would like to build this:
A form with a TButton and a TPageControl.
When I press the button a new page (TTabSheet) is created in the PageControl1. And in the new page there has to be a TWebBrowser Component with its Align := alClient.
Well everything goes A-Ok until this: "with its Align := alClient".
I do not get a error but the WebBrowser isn't as big as it should be (only 100 by 20 pixels). It also doesn't respond on the fullscreen, width and height properties.
This is my code:
I really hope someone can help me with this.
Greets Sjoerd
For the last 3 days I have this problem with Delphi 7's TWebBrowser Component.
I would like to build this:
A form with a TButton and a TPageControl.
When I press the button a new page (TTabSheet) is created in the PageControl1. And in the new page there has to be a TWebBrowser Component with its Align := alClient.
Well everything goes A-Ok until this: "with its Align := alClient".
I do not get a error but the WebBrowser isn't as big as it should be (only 100 by 20 pixels). It also doesn't respond on the fullscreen, width and height properties.
This is my code:
Code:
procedure TForm1.createPage();
var t : TTabSheet;
begin
PageControl1.Align := alClient;
t := TTabSheet.Create(PageControl1);
with t do
begin
PageControl := PageControl1;
Name := 'TabSheet' + IntToStr(pageN);
Caption := 'Page' + IntToStr(pageN);
Align := alClient;
with TWebBrowser.Create(t) do
begin
Align := alClient; //doesn't work
Navigate ('[URL unfurl="true"]http://www.yahoo.com');[/URL] //does work
ParentWindow := t.Handle;
end;
end;
pageN := pageN + 1; //pageN is a Integer
end;
I really hope someone can help me with this.
Greets Sjoerd