clobba / open-webkit-sharp

Automatically exported from code.google.com/p/open-webkit-sharp
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Find method #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. using the find method of openwebkitsharp r105
2. where parameter highlight=true 

What is the expected output? What do you see instead?
it works all correct when using find method for the first time. but when using 
it for second time words highlighted in previous search appear d same. I expect 
dat previously highlighted word should no longer appear as highlighted....

What version of the product are you using? On what operating system?
i am using openwebkitsharp r105 on windows xp sp2.. .net framework 4.. visual 
studio 2008

Please provide any additional information below.
i tried using something lik this:

WebKit.Interop.WebViewClass zzz = new WebKit.Interop.WebViewClass();
zzz.markAllMatchesForText(txtfind.Text, 0, Convert.ToInt32(false), 500, out 
totalmatches);

prior to my search.. bt it throws COM class factory exception
i even tried to add an additional line in find method of Webkitbrowser class of 
openwebkitsharp... bt its of no use..
even d example provided has same fault...
is their any way to achieve wat i need..??

Original issue reported on code.google.com by mamtagan...@gmail.com on 29 Jan 2012 at 9:18

GoogleCodeExporter commented 9 years ago
You can use <webkitbrowser>.Find to use the find method and then 
<webkitbrowser>.WebView.unmarkAllTextMatches() to clear all highlighted texts. 
Every time you use Find you must clear all Text Matches using the above method.

Original comment by tsumalis96@gmail.com on 29 Jan 2012 at 6:26

GoogleCodeExporter commented 9 years ago
yeah it is working fine now.. thanx...

Original comment by mamtagan...@gmail.com on 30 Jan 2012 at 3:10

GoogleCodeExporter commented 9 years ago

Original comment by tsumalis96@gmail.com on 5 Jul 2012 at 10:44