Xojo Conferences
XDCMay2019MiamiUSA

[MBS] Dealing with new windows in WebkitMBS (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] ZlibDecompressMBS
Next thread: [MBS] Audio Playback Pt. 3


Re: [MBS] MIDI Destinations and External Devices   -   Ron Benditt
  [MBS] Dealing with new windows in WebkitMBS   -   Jack Smith
   Re: [MBS] Dealing with new windows in WebkitMBS   -   Christian Schmitz
   Re: Re: [MBS] Dealing with new windows in WebkitMBS   -   Jack Smith
   Re: Re: Re: [MBS] Dealing with new windows in WebkitMBS   -   Jack Smith
   Re: Re: Re: Re: [MBS] Dealing with new windows in WebkitMBS   -   Jack Smith
    Re: [MBS] Dealing with new windows in WebkitMBS   -   Christian Schmitz
   [MBS] ZlibDecompressMBS   -   Garth Hjelte

[MBS] Dealing with new windows in WebkitMBS
Date: 21.11.06 22:57 (Tue, 21 Nov 2006 16:57:05 -0500)
From: Jack Smith
I'm trying to get the DecidePolicyForNewWindowAction event to respond
when I try opening a new window. As a test, I tried adding MsgBox
"Test" to the event, but that does nothing. Then I tried adding the
following code into DecidePolicyForNavigationAction:

if actionInformation.ContainsValue(NewCFStringMBS("WebNavigationTypeOther"))
then
MsgBox "Test"
end if

This also does nothing. I'm trying to display a message box saying
"Test" when I right-click a link and choose Open Link in New Window.
What am I doing wrong?
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Dealing with new windows in WebkitMBS
Date: 22.11.06 23:04 (Wed, 22 Nov 2006 23:04:28 +0100)
From: Christian Schmitz
Jack Smith <<email address removed>> wrote:

> I'm trying to get the DecidePolicyForNewWindowAction event to respond
> when I try opening a new window. As a test, I tried adding MsgBox
> "Test" to the event, but that does nothing. Then I tried adding the
> following code into DecidePolicyForNavigationAction:

Well, have you tried with a

CFShowMBS actionInformation

to display what is in the dictionary. Maybe you get a different key
there on other clicks.

Gruß
Christian

-

Re: Re: [MBS] Dealing with new windows in WebkitMBS
Date: 24.11.06 04:58 (Thu, 23 Nov 2006 22:58:33 -0500)
From: Jack Smith
Actually, it works just fine when I click a link that opens a new
window via javascript. The only thing that doesn't work is selecting
Open Link in New Window from the context menu. I put "Beep" into both
events and I don't hear the beep when I select it. Not sure why...

On 11/22/06, Christian Schmitz <<email address removed>> wrote:
> Jack Smith <<email address removed>> wrote:
>
> > I'm trying to get the DecidePolicyForNewWindowAction event to respond
> > when I try opening a new window. As a test, I tried adding MsgBox
> > "Test" to the event, but that does nothing. Then I tried adding the
> > following code into DecidePolicyForNavigationAction:
>
> Well, have you tried with a
>
> CFShowMBS actionInformation
>
> to display what is in the dictionary. Maybe you get a different key
> there on other clicks.
>
> Gruß
> Christian
>
> --
> Around eleven thousand functions in one REALbasic plug-in.
> The Monkeybread Software Realbasic Plugin v6.4. Now universal!
> <http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> <email address removed>
> http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
>
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: Re: Re: [MBS] Dealing with new windows in WebkitMBS
Date: 24.11.06 05:33 (Thu, 23 Nov 2006 23:33:12 -0500)
From: Jack Smith
Actually, don't worry about it, because I plan on deleting Open Link
in New Window anyway. I'd like to create a menu item called Open Link
in New Tab. I noticed you made a menu item called "Hello" in one
project. How do you assign an action to this?

On 11/23/06, Jack Smith <<email address removed>> wrote:
> Actually, it works just fine when I click a link that opens a new
> window via javascript. The only thing that doesn't work is selecting
> Open Link in New Window from the context menu. I put "Beep" into both
> events and I don't hear the beep when I select it. Not sure why...
>
> On 11/22/06, Christian Schmitz <<email address removed>> wrote:
> > Jack Smith <<email address removed>> wrote:
> >
> > > I'm trying to get the DecidePolicyForNewWindowAction event to respond
> > > when I try opening a new window. As a test, I tried adding MsgBox
> > > "Test" to the event, but that does nothing. Then I tried adding the
> > > following code into DecidePolicyForNavigationAction:
> >
> > Well, have you tried with a
> >
> > CFShowMBS actionInformation
> >
> > to display what is in the dictionary. Maybe you get a different key
> > there on other clicks.
> >
> > Gruß
> > Christian
> >
> > --
> > Around eleven thousand functions in one REALbasic plug-in.
> > The Monkeybread Software Realbasic Plugin v6.4. Now universal!
> > <http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
> > _______________________________________________
> > Mbsplugins_monkeybreadsoftware.info mailing list
> > <email address removed>
> > http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
> >
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: Re: Re: Re: [MBS] Dealing with new windows in WebkitMBS
Date: 24.11.06 16:52 (Fri, 24 Nov 2006 10:52:54 -0500)
From: Jack Smith
FYI, I'm using TextWebKit with UI Events. All I did was add the
MyCocoaMenuItemMBS class and changed "Hello" menu item from this...

menu=new CocoaMenuItemMBS

...to this...

menu=new MyCocoaMenuItemMBS

The action event should fire a MsgBox but it does not - not even if I
build the application and run it outside the IDE.

On 11/23/06, Jack Smith <<email address removed>> wrote:
> Actually, don't worry about it, because I plan on deleting Open Link
> in New Window anyway. I'd like to create a menu item called Open Link
> in New Tab. I noticed you made a menu item called "Hello" in one
> project. How do you assign an action to this?
>
> On 11/23/06, Jack Smith <<email address removed>> wrote:
> > Actually, it works just fine when I click a link that opens a new
> > window via javascript. The only thing that doesn't work is selecting
> > Open Link in New Window from the context menu. I put "Beep" into both
> > events and I don't hear the beep when I select it. Not sure why...
> >
> >
> > On 11/22/06, Christian Schmitz <<email address removed>> wrote:
> > > Jack Smith <<email address removed>> wrote:
> > >
> > > > I'm trying to get the DecidePolicyForNewWindowAction event to respond
> > > > when I try opening a new window. As a test, I tried adding MsgBox
> > > > "Test" to the event, but that does nothing. Then I tried adding the
> > > > following code into DecidePolicyForNavigationAction:
> > >
> > > Well, have you tried with a
> > >
> > > CFShowMBS actionInformation
> > >
> > > to display what is in the dictionary. Maybe you get a different key
> > > there on other clicks.
> > >
> > > Gruß
> > > Christian
> > >
> > > --
> > > Around eleven thousand functions in one REALbasic plug-in.
> > > The Monkeybread Software Realbasic Plugin v6.4. Now universal!
> > > <http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
> > > _______________________________________________
> > > Mbsplugins_monkeybreadsoftware.info mailing list
> > > <email address removed>
> > > http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
> > >
> >
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Dealing with new windows in WebkitMBS
Date: 30.11.06 00:21 (Thu, 30 Nov 2006 00:21:03 +0100)
From: Christian Schmitz
Jack Smith <<email address removed>> wrote:

> The action event should fire a MsgBox but it does not - not even if I
> build the application and run it outside the IDE.

I just fixed that.
You'll need to set the ID of that menu object to something.
(so the internal stuff is initialized.)

And maybe you need that small fix I made for 6.5pr7.

Gruß
Christian

-