Message 1 of 5
.net control WebBrowser, need help with something

Not applicable
04-07-2008
11:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm attempting to integrate a System.Windows.forms.WebBrowser control into a script that will allow for data entry and I'm having a problem where the Enter and Tab keys don't do anything.
I've just started to delve into .net controls within Maxscript and I'm thoroughly confused as to what I might be missing here. I've simply copied and pasted the example code provided in the Max help docs (sorry for removing the K&R bracketting Bobo) and have included a website with a Rich Text editor for testing. If you simply copy/paste and evaluate the following code you'll find that a website loads with a multi-line text control, you can type into the box with no problems, however, the Enter key and Tab do absolutely nothing, does anyone have any ideas?
-Jon
I'm attempting to integrate a System.Windows.forms.WebBrowser control into a script that will allow for data entry and I'm having a problem where the Enter and Tab keys don't do anything.
I've just started to delve into .net controls within Maxscript and I'm thoroughly confused as to what I might be missing here. I've simply copied and pasted the example code provided in the Max help docs (sorry for removing the K&R bracketting Bobo) and have included a website with a Rich Text editor for testing. If you simply copy/paste and evaluate the following code you'll find that a website loads with a multi-line text control, you can type into the box with no problems, however, the Enter key and Tab do absolutely nothing, does anyone have any ideas?
-Jon
rollout webbrowser_rollout "Web Test" width:600 height:600
(
edittext edt_url "URL:" text:"http://www.kevinroth.com/rte/demo.php"
dotNetControl wb "System.Windows.forms.WebBrowser" pos: width:580 height:570
fn openURL urlString =
(
wb.url = dotNetObject "System.Uri" urlString
)
on edt_url entered txt do openURL txt
on webbrowser_rollout open do openURL edt_url.text
)
createdialog webbrowser_rollout