🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #299

Re: Invoking the events when filling in fields using TCppWebBrowser

#299
From: Remy Lebeau (TeamB)
Date: Thu, 22 Feb 2007 08:20
34 lines
2242 bytes
"Trevor Keegan" <tkeegan@ealink.com> wrote in message
news:45dd392b@newsgroups.borland.com...

> I did see the Invoke method there, but it looked as though I needed
> to send in a whole bunch of parameters. So I thought there might
> be another way :)

Invoke() is a very flexible method.  Just because it has room to
accept parameters does not mean that you have to use them.  In fact,
DISPID_VALUE is a default method, so it does not accept any input
parameters.  You would fill in the DISPPARAMS structure with empty
data.  There is an example in IDispatch's documentation of calling a
method with no parameters.

> I like the sound of this....but please help me, how do I get
> to the IHTMLElement3....

The same way you get any interface from another - via the
QueryInterface() method.

> I current have this:
<snip>
> Should I add something like IHTMLElement3::fireEvent( "OnBlur",
TextInput )
> ?

Please read the documentation for fireEvent():


http://msdn.microsoft.com/workshop/browser/mshtml/reference/ifaces/element3/fireevent.asp


Gambit
Technical Details
Message-ID: <45dd52cc$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!homer!news.glorb.com!news-spur1.glorb.com!news.glorb.com!newsgate.cistron.nl!xs4all!news2.euro.net!feeder1.cambrium.nl!feed.tweaknews.nl!tudelft.nl!binfeed1.tudelft.nl!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45dcef87$1@newsgroups.borland.com> <45dcf9ff$1@newsgroups.borland.com> <45dd392b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,41646948ec07ae8b
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <45dcef87$1@newsgroups.borland.com> <45dcf9ff$1@newsgroups.borland.com> <45dd392b@newsgroups.borland.com>
Subject: Re: Invoking the events when filling in fields using TCppWebBrowser
Date: Thu, 22 Feb 2007 00:20:48 -0800
Lines: 36
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.83.34.171
Message-ID: <45dd52cc$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1172132556 75.83.34.171 (22 Feb 2007 00:22:36 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!homer!news.glorb.com!news-spur1.glorb.com!news.glorb.com!newsgate.cistron.nl!xs4all!news2.euro.net!feeder1.cambrium.nl!feed.tweaknews.nl!tudelft.nl!binfeed1.tudelft.nl!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail