Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] Question about OverlayMBS getting focus (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] Someone visiting Drupa exposition?
Next thread: [MBS] [ANN] 12.2pr4


Re: [MBS] Popupmenu   -   Garth Hjelte
  [MBS] Question about OverlayMBS getting focus   -   Cameron McCormick
   Re: [MBS] Question about OverlayMBS getting focus   -   Christian Schmitz
   Re: [MBS] Question about OverlayMBS getting focus   -   Cameron McCormick
   Re: [MBS] Question about OverlayMBS getting focus   -   Cameron McCormick
   Re: [MBS] Question about OverlayMBS getting focus   -   Christian Schmitz
   Re: [MBS] Question about OverlayMBS getting focus   -   Cameron McCormick
   Re: [MBS] Question about OverlayMBS getting focus   -   Cameron McCormick
   Re: [MBS] Question about OverlayMBS getting focus   -   Christian Schmitz

[MBS] Question about OverlayMBS getting focus
Date: 20.04.12 07:54 (Fri, 20 Apr 2012 02:54:12 -0400)
From: Cameron McCormick
Hi,
I'm using OverlayMBS in a project and have an undesired behavior.
I instantiate a copy of OverlayMBS, and add some buttons with the
oButton class from the "Overlay with Controls" example.

Whats happening is when I click on the overlay, it shifts focus away
from the foremost application window on the screen and onto my
project,
first to the other window the application has on screen, and if that
is hidden or minimized then to another window.

Is there any way to have OverlayMBS accept mouse clicks and not shift
focus away from the active application?

I've tested this with the demos that come with OverlayMBS and they
exhibit the same behavior, so I don't think its something my code has
introduced...

Any help on this matter would be greatly appreciated.

Thanks,
Cameron McCormick
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Question about OverlayMBS getting focus
Date: 21.04.12 12:32 (Sat, 21 Apr 2012 13:32:08 +0200)
From: Christian Schmitz

Am 21.04.2012 um 09:36 schrieb Cameron McCormick:

> I've tried several of the available constructors for OverlayMBS,
> and tried the different boolean options, pretty much every way I could.

Can you send me off list an example project?

Something where I can easily see the problem and check it.

Greetings
Christian

Re: [MBS] Question about OverlayMBS getting focus
Date: 21.04.12 08:36 (Sat, 21 Apr 2012 03:36:45 -0400)
From: Cameron McCormick
I've tried several of the available constructors for OverlayMBS,
and tried the different boolean options, pretty much every way I could.

They all have the same behavior - when my app, which doesn't have a menubar,
it exposes what was behind the other app that had focus, like a
browser or photoshop (which exhibits this a lot as it has a big menu
area at the top of the screen)

The best I've been able to do is to call
RemoteControlMBS.MacFrontProcessName = *Front-Process-Name* as soon as
I detect the mouse click to minimize the effect.
This results in a minimal "flicker" on the screen that is somewhat
jarring from a visual standpoint. It's OK I guess, but not ideal.

I was doing some additional research, into any method for doing a
window that wont "Steal Focus"
and came across an older post to the NUG regarding a "ToolTipLike"
window, one of the answers referenced OverlayMBS as a solution for
this, but didn't give any specifics...

Heres the archived post:
http://support.realsoftware.com/listarchives/realbasic-nug/2011-05/msg00937.html

I hope this gives a better idea of what I'm trying to do - if theres
anything else I can provide, let me know - as I'm kind of out of ideas
here...

Thanks Again,
Cameron

On Fri, Apr 20, 2012 at 12:28 PM, Cameron McCormick
<<email address removed>> wrote:
> My build settings are set for carbon as I'm not doing any cocoa stuff
> in my app.
>
> thanks,
> Cameron
>
> On Fri, Apr 20, 2012 at 5:07 AM, Christian Schmitz
> <<email address removed>> wrote:
>>
>> Am 20.04.2012 um 10:11 schrieb Cameron McCormick:
>>
>>> Oh, I probably should have mentioned this - I had tried it with the
>>> alternate constructor, like this:
>>>
>> Carbon? Cocoa?
>>
>> On Carbon, we do set flag for NoActivate parameter internally.
>> But not for Cocoa.
>>
>> Greetings
>> Christian
>>
>> --
>> Real Studio Conferences, Training and Meetings.
>>
>> More details and registration here:
>> http://www.monkeybreadsoftware.de/realbasic/events/
>>
>>
>> _______________________________________________
>> Mbsplugins_monkeybreadsoftware.info mailing list
>> <email address removed>
>> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Question about OverlayMBS getting focus
Date: 20.04.12 17:28 (Fri, 20 Apr 2012 12:28:47 -0400)
From: Cameron McCormick
My build settings are set for carbon as I'm not doing any cocoa stuff
in my app.

thanks,
Cameron

On Fri, Apr 20, 2012 at 5:07 AM, Christian Schmitz
<<email address removed>> wrote:
>
> Am 20.04.2012 um 10:11 schrieb Cameron McCormick:
>
>> Oh, I probably should have mentioned this - I had tried it with the
>> alternate constructor, like this:
>>
> Carbon? Cocoa?
>
> On Carbon, we do set flag for NoActivate parameter internally.
> But not for Cocoa.
>
> Greetings
> Christian
>
> --
> Real Studio Conferences, Training and Meetings.
>
> More details and registration here:
> http://www.monkeybreadsoftware.de/realbasic/events/
>
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> <email address removed>
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Question about OverlayMBS getting focus
Date: 20.04.12 10:07 (Fri, 20 Apr 2012 11:07:49 +0200)
From: Christian Schmitz

Am 20.04.2012 um 10:11 schrieb Cameron McCormick:

> Oh, I probably should have mentioned this - I had tried it with the
> alternate constructor, like this:
>

Carbon? Cocoa?

On Carbon, we do set flag for NoActivate parameter internally.
But not for Cocoa.

Greetings
Christian

Re: [MBS] Question about OverlayMBS getting focus
Date: 20.04.12 09:11 (Fri, 20 Apr 2012 04:11:09 -0400)
From: Cameron McCormick
Oh, I probably should have mentioned this - I had tried it with the
alternate constructor, like this:
OverlayMBS.Constructor(left as integer, top as integer, width as
integer, height as integer, WindowsNoActivate as boolean = false,
WindowsTopMost as boolean=true)
Which seems to act the same, with true or false for the last two options...

I haven't tried this one tho,
OverlayMBS.Constructor(left as integer, top as integer, width as
integer, height as integer, MacAttributes as integer, WinExStyle as
integer, WinStyle as integer)

Is there some combination of the MacAttributes that would do what I'm asking?

Thanks,
Cameron



On Fri, Apr 20, 2012 at 3:56 AM, Cameron McCormick <<email address removed>> wrote:
> Mac, 10.7
>
> I'm using: Super.Constructor(left, top, width, height, activating)
> the code I'm using the setup the overlay is:
> o=new MyOverlay(screen(0).AvailableLeft,screen(0).AvailableTop,int_width,int_height,True)
>
> hope this helps.
>
> Thanks,
> Cameron
>
> On Fri, Apr 20, 2012 at 3:43 AM, Christian Schmitz
> <<email address removed>> wrote:
>>
>> Am 20.04.2012 um 08:54 schrieb Cameron McCormick:
>>
>>> Hi,
>>> I'm using OverlayMBS in a project and have an undesired behavior.
>>>
>> Mac? Windows?
>>
>> Do you use those extra flags for Constructor?
>>
>> Greetings
>> Christian
>>
>> --
>> Real Studio Conferences, Training and Meetings.
>>
>> More details and registration here:
>> http://www.monkeybreadsoftware.de/realbasic/events/
>>
>>
>> _______________________________________________
>> Mbsplugins_monkeybreadsoftware.info mailing list
>> <email address removed>
>> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Question about OverlayMBS getting focus
Date: 20.04.12 08:56 (Fri, 20 Apr 2012 03:56:38 -0400)
From: Cameron McCormick
Mac, 10.7

I'm using: Super.Constructor(left, top, width, height, activating)
the code I'm using the setup the overlay is:
o=new MyOverlay(screen(0).AvailableLeft,screen(0).AvailableTop,int_width,int_height,True)

hope this helps.

Thanks,
Cameron


On Fri, Apr 20, 2012 at 3:43 AM, Christian Schmitz
<<email address removed>> wrote:
>
> Am 20.04.2012 um 08:54 schrieb Cameron McCormick:
>
>> Hi,
>> I'm using OverlayMBS in a project and have an undesired behavior.
>>
> Mac? Windows?
>
> Do you use those extra flags for Constructor?
>
> Greetings
> Christian
>
> --
> Real Studio Conferences, Training and Meetings.
>
> More details and registration here:
> http://www.monkeybreadsoftware.de/realbasic/events/
>
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> <email address removed>
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Question about OverlayMBS getting focus
Date: 20.04.12 08:43 (Fri, 20 Apr 2012 09:43:29 +0200)
From: Christian Schmitz

Am 20.04.2012 um 08:54 schrieb Cameron McCormick:

> Hi,
> I'm using OverlayMBS in a project and have an undesired behavior.
>

Mac? Windows?

Do you use those extra flags for Constructor?

Greetings
Christian