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