🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
4 messages
4 total messages Started by Bob Sun, 03 Dec 2006 14:47
TCppWebBrowser - Reuse showModalDialog
#343
Author: Bob
Date: Sun, 03 Dec 2006 14:47
2 lines
1196 bytes
Hi, Can I reuse showModalDialog function in a TCppWebBrowser control? I
want to show my own dialog.
Re: TCppWebBrowser - Reuse showModalDialog
#344
Author: Hans Galema
Date: Sun, 03 Dec 2006 17:57
12 lines
1327 bytes
Bob wrote:
> Hi, Can I reuse showModalDialog function in a TCppWebBrowser control? I
> want to show my own dialog.

If you can use the function showModalDialog, then what is the problem
using it again ?

I'm not aware of such a function being part of TCppWebBrowser.

Please be more exact.

Hans.
Re: TCppWebBrowser - Reuse showModalDialog
#348
Author: Bob
Date: Tue, 05 Dec 2006 04:46
9 lines
1576 bytes
showModalDialog is a javascript function:

<script language=javascript>
window.showModalDialog('dialog.htm','','help:No;status:No;resizable:Yes');
</script>

This function pop up a simple modal dialog with IE's icon. I wan't to
show my own window. The problem is, I can't get the OnNewWindow2 or
OnNewWindow3 event.
Re: TCppWebBrowser - Reuse showModalDialog
#351
Author: Hans Galema
Date: Fri, 08 Dec 2006 20:56
22 lines
1571 bytes
Bob wrote:
> showModalDialog is a javascript function:

...

> This function pop up a simple modal dialog with IE's icon.

Does it display dialog.htm?

> I wan't to
> show my own window.

You want to show dialog.htm in your existing TCppWebBrowser instance?

> The problem is, I can't get the OnNewWindow2 or
> OnNewWindow3 event.

You mean that the OnNewWindow2 event does not trigger?

And if you use window.open() ?

Hans.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads