[interfacekit] Re: Possible bug?

From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
> "Adi Oanca" <adioanca@xxxxxxxxxxxxx> wrote:
> > First I want to ask you something for R2+
> >     I think y'all know what a window subset is. It is build like so:
> >         win1->AddToSubset(normalWindow);
> >     IMO 'AddToSubset' is very confusing. You would normally think
> > that the
>
> It seems to be a similar logic as in StartWatching() - which even more
> works in diametrical opposition than what I had thought.
> Although this one is IMO much clearer, I don't care that much, although
> I think that we should be careful with these things to not break
> compatibility between R1 and R2 too much - for the most stuff, a simple
> recompilation should be enough.

    I agree, that why I ask you just to add an 'Of'.
    AddToSubsetOf()?

> > NOW, the problem I have.
> >     In BeBook, at:
> > file:///D:/_Dev/Be%20Book/The%20Interface%20Kit/
> > Window.html#window_feel
> > it's being said:
> >     "Modal windows are drawn in front of floating windows."
> >
> > but, if win1 has B_MODAL_ALL_WINDOW_FEEL and win2
> > B_FLOATING_ALL_WINDOW_FEEL, and of course both
> > visible, something amazing happens:
> >     win2(the floating one) is *in front* of win1 - the modal window!
> > Worse, the floating window
> > *can* take focus from the modal one!!!
> >     IS that right? I think not!
> >     What do you think?
>
> I think this should only happen if the floating window is in the subset
> of the modal window, not if they are in the same subset.
> So I would regard this as a bug, yes. We just need to find an
> application that wouldn't work without it :)
From: "Andrew Bachmann" <shatty@xxxxxxxxxxxxx>
> I agree with Axel, I think it's a bug.  Also, I think that it probably
> doesn't make too much sense for a modal window to have other
> windows in its own subset, does it? :-)

    A modal window *can't* have a subset - just tested that.
    [ I think that's valuable also for a floating one - did not test that! ]
    And yes, Andrew, I don't see a point one modal window having a subset.

    So, this is a bug... OK, OBOS app_server, won't have that! :-)


Adi.


Other related posts: