Article View: borland.public.cppbuilder.internet.web
Article #1204Re: Combobox and Dropdown Box Interfaces?
From: Mitch McInelly
Date: Wed, 03 Aug 2005 20:01
Date: Wed, 03 Aug 2005 20:01
39 lines
2411 bytes
2411 bytes
Of course... I did read the documentation but got stuck thinking the edit component of the combobox would be inherited from InputElement rather than SelectElement. Thanks for the help - once again. Mitch "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:42f11f81$1@newsgroups.borland.com... > > "Mitch McInelly" <mitch@agencysoftware.com> wrote in message > news:42f1176b$1@newsgroups.borland.com... > >> it just skips over my combo boxes displayed in the browser. > > Of course it does, because you did not code in the ComboBox interfaces. > You > did not read the MSHTML interface documentation, did you? > > > http://msdn.microsoft.com/workshop/browser/mshtml/reference/ifaces/interface.asp > > ComboBoxes are not handled by the <input> HTML tag to begin with, so > IHTMLInputElement is the wrong interface to use. ComboBoxes are handled > by > the <select> HTML tag instead, and thus you should be using the > IHTMLSelectElement interface instead. The individual items of the list > are > contained in <option> tags inside the <select> so you can use the > IHTMLSelectElement's item() method to retreive the IHTMLOptionElement > interface for each item in the list. > > > Gambit > >
Technical Details
Message-ID:
<42f1229e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42f1176b$1@newsgroups.borland.com> <42f11f81$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,7d001b48edf887db X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Mitch McInelly" <mitch@agencysoftware.com> From: "Mitch McInelly" <mitch@agencysoftware.com> Newsgroups: borland.public.cppbuilder.internet.web References: <42f1176b$1@newsgroups.borland.com> <42f11f81$1@newsgroups.borland.com> Subject: Re: Combobox and Dropdown Box Interfaces? Date: Wed, 3 Aug 2005 13:01:35 -0700 Lines: 41 Organization: Agency Software, Inc. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 207.88.115.45 Message-ID: <42f1229e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1123099294 207.88.115.45 (3 Aug 2005 13:01:34 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail