This is an evolution of Andrew Graham's WebBrowser control library.
It enables a few new properties and methods that were not available in previoue releases.
All of the previous properties, methods and events are still present, so this will focus on the new ones aded to the base dll.
properties:
DLLVersion - Returns the Dll Version Number.
In this case it wil, return "2.1" as it is based in Andrews "1.0" WebBrowser DLL.
DocumentText - Can now GET current document text(html)
ScrollBars - Boolean, sets or gets wheter the scrollbars are visible or not
FocusedControlName - String, gets the name of the WebBrowser Document Controls that has the focus...
Can be used to learn the name of textboxes in a webForm, for later filling...
FocusedControlID - String, gets the ID of the WebBrowser Document Controls that has the focus...
Can be used to learn the name of textboxes in a webForm, for later filling...
ControlValue - String, sets or gets the value of the focused control
SupressScriptErrors - Boolean, Enables or disable the script error catching by the browser NEW
ContextMenuEnabled - Boolean, Enables or disables the Browser context menu NEW
methods:
Cookie - Retrieves the current document cookies...NEW
SendControlClick(String ID) - Fires the click event (if supported) of the specified control (either by ID or by Name)
Can be used to trigger a webform "submit" button instead of using the POST method
SetControlFocus(String Control) - Sets the focus to the specified webBrowser document based control, such as a textbox, either by ID or by name
Refresh() - Reloads the current url
Zoom(int factor) - Optical Zoom, as in IE7...
Most of these properties, methods and events work on any platform, BUT some are, as earlier referred by Andrew, not available in some OS versions, Other throw an error, and others are only available in the desktop, like the zoom feature.
I haven't tryied this in a device, because i do not have mobile data access enabled in my Universal.
Edit:
It is safer to say that this is a DESKTOP ONLY dll.
This is still a work in progress, so more properties, methods or events can be added, as needed and as possible.
Use this thread to post your opinion or suggestion for future versions.
Better demo file Uploaded, enjoy!!
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
My Posts helped you? Consider Buying me a Porto Glass!
I am afraid that this is a desktop only library. It is currently compiled for desktop use and will not compile for the device as it stands as it references some properties and methods that are not present on the device.
Thanks for the hint...
I have managed to hide the remaining objects from b4ppc...
I will release the new file with a new update...
I'm hopping to add a "links collection" array to the dll, so to list all the links present in a html document...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
My Posts helped you? Consider Buying me a Porto Glass!
I am considering useing your lib on the desktop version of my program.
Since with this lib you can get DocumentText. Is it possible to create a search feature to find some text then highlight it and scroll to make it visible?
Easy done with a text box but not sure with this lib.
I am considering useing your lib on the desktop version of my program.
Since with this lib you can get DocumentText. Is it possible to create a search feature to find some text then highlight it and scroll to make it visible?
Easy done with a text box but not sure with this lib.
Yes it is possible except for the auto scroll(yet)...
1st get the text with documenttext
2nd treat the resulting string as you normaly would do to serach for the word(s) you want
3rd Insert the needee html code to highling the word(s)
4rth show the resulting string using agian the document text
'll try to work out how to auto scroll to the highlighted word..
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
My Posts helped you? Consider Buying me a Porto Glass!
whch demo file are you using?
The WebBrowserDemo.spb is much complete and targets the current dll...
The Objects, as pointe in one of my posts, are public methods created in the dll, for internal use...
The next release of the dll, will only make public the Wbbrowser Object, That IS the one object to use.
Also I had NO problem compiling in either the Optimized compile or legacy compile...WITH THE WEBBROWSERDEMO.SPB FILE...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
My Posts helped you? Consider Buying me a Porto Glass!