Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Webbrowser ...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Wed Jun 20, 2007 10:53 am    Post subject: Webbrowser ... Reply with quote

Im trying to make a webbrowser in delphi to learn more.

I currently got back/foward buttons, adress bar, webbrowser.

when i enter the adress in the Tedit box it just loads. If someone could tell me how to make it kinda wait till i clicked a GO! button.

could someone tell me how to make it stop loading until i click a button, and how to attach the button and the editbox.

thanks in advance, kevin.
Back to top
View user's profile Send private message MSN Messenger
Simsgy
Grandmaster Cheater
Reputation: 0

Joined: 07 May 2007
Posts: 581
Location: My new avatar <3

PostPosted: Wed Jun 20, 2007 11:00 am    Post subject: Reply with quote

Make the Go button, and then double click on it, and write the following:

Code:

Procedure ...............................;
var
Address: String;
begin
Edit1.Text := Address;
WebBrowser1.Navigate(Address);
end;


Replace WebBrowser1 if it is not your WebBrowser's name.
Replace Edit1 if it is not your editbox's name.
And tell me if it works Wink

_________________

Designer, WebMaster and a Delphi programmer.
TrPlayer, my biggest Delphi project hosted on SourceForge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Wed Jun 20, 2007 11:07 am    Post subject: Reply with quote

you prolly have it set for when the tedit box changes

try it so its set for a button

_________________
Back to top
View user's profile Send private message
Simsgy
Grandmaster Cheater
Reputation: 0

Joined: 07 May 2007
Posts: 581
Location: My new avatar <3

PostPosted: Wed Jun 20, 2007 11:08 am    Post subject: Reply with quote

blankrider wrote:
you prolly have it set for when the tedit box changes

try it so its set for a button


I already taught him.
Look one post over you Shocked

_________________

Designer, WebMaster and a Delphi programmer.
TrPlayer, my biggest Delphi project hosted on SourceForge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Wed Jun 20, 2007 11:11 am    Post subject: Reply with quote

i did the OnClick now, i just double clicked before. my mistake. But adding a go button is a good idea too. i'll try it.
Back to top
View user's profile Send private message MSN Messenger
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Wed Jun 20, 2007 11:12 am    Post subject: Reply with quote

i gave him ideas

you gave him code

:]

_________________
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Wed Jun 20, 2007 11:19 am    Post subject: Reply with quote

well, i used the code you gave me Simsgy. But it just deletes the text in the adress when i click the button. doesnt even load.

i was thinking if i could use a if statement... (yes, i made panels for a better look)

if Panel1.execute then edit1.text opens webbrowser

or something like that RazzRazz im a bit newb still but at least i got the first part of the if statement right, i hope Shocked
Back to top
View user's profile Send private message MSN Messenger
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Thu Jun 21, 2007 6:51 am    Post subject: Reply with quote

Simsgy wrote:
Make the Go button, and then double click on it, and write the following:

Code:

Procedure ...............................;
var
Address: String;
begin
Edit1.Text := Address;
WebBrowser1.Navigate(Address);
end;


Replace WebBrowser1 if it is not your WebBrowser's name.
Replace Edit1 if it is not your editbox's name.
And tell me if it works Wink

u can just:
WebBrowser1.Navigate(Edit1.Text);

and in the Stop button:
WebBrowser1.Stop;

That's kind of an easy thing... It's all encapsulated in the TWebBrowser..
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Thu Jun 21, 2007 7:05 am    Post subject: Reply with quote

assaf84, but what if i want to click a seperate button beside the adress bar (a editbox) to make it load the page? how do i do that?
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites