Hi Byteo,

I'm really sorry but I'm talking nonsense. HSP is still declared final
so you can't extend it. For some reason I thought it had been changed.

I think the only way you can do what you want to do is to copy the
code into your own class and hack it. However that might be a bad idea
especially as I think a new event system is coming in with 1.6 so it
is possible HSP and its super class SplitPanel will change somewhat
leaving you with a problem for the future.

Sorry to mislead you.

regards
gregor

On Nov 6, 5:57 pm, gregor <[EMAIL PROTECTED]> wrote:
> Hi Byteo,
>
> HSP has a protected method: Element getSplitElement(). So you can
> extend HSP and make use of this. Element has getAbsoluteLeft() method
> so you can tell where the splitter is. HSP does not broadcast any
> events when the splitter is moved however, so I think you may have to
> override onBrowserEvent(Event event) to catch mouse down, mouse move,
> mouse up events etc being careful not to sink them and pass them on to
> super.
>
> I haven't tried this, but thinking about it you may be able to fool
> the underlying HSP that the mouse is stationary by sinking any mouse
> move events outside your chosen parameters. Maybe then the cursor will
> continue to move but the splitter itself won't. You can then pass on
> the mouse up event when it arrives and the HSP might resize where you
> wanted it to.
>
> regards
> gregor
>
> On Nov 6, 4:02 pm, Byteo <[EMAIL PROTECTED]> wrote:
>
> > Hi !
> > I have a problem with HorizontalSplitPanel!
>
> > I need to catch the moving of SplitBar element....it's possible?
> > I want to stop resizing the SplitBAr when the left widget width is
>
> > >670px....
>
> > Please help me!
> > Matteo.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to