Skip to main content

Browser Demo Customization?

1 reply [Last post]
carle
Offline
Joined: 2004-05-24

No explanation is required, this is an important project, great work.

I have a couple of questions to understand how much an application via JDIC can be customized.

In the JDIC API Demo - Browser, when a user right clicks in the window, the Internet Explorer (in Windows of course) menu pop ups. Also, when a user opens in a new window via a link or control-n a new window opens. Are these actions that can be controlled, if we wanted to not allow, with JDIC?

Also, when a new window opens, the new window jumps out of the wrapper completely into the native app.

Some actions are nice and not available in other embedded browsers. For example, the tab key works with JDIC, not in other projects.

Thank you.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kyleyuan
Offline
Joined: 2003-08-14

the WebBrowser class has a willOpenNewWindow method which will be called every time *before* the new browser window popped up. You can just override the method and return false to prevent this from happening.