On Jan 28, 2008, at 10:52 AM, Simen Haugen wrote:

> I've tried overriding unsplit, canRemove and trapping  
> SashPositionChange
> and stopping the event, but nothing works.
>
> When you dry the sash out of the form window on either side, the panel
> gets completely hidden.
>
> Is there a way of overriding this?

        Try this: change line 110 in the __init__() method of dSplitter to  
read:

                baseStyle = wx.SP_3D | wx.SP_LIVE_UPDATE

Now when you run it, as long as the MinimumPanelSize is greater than  
zero, the splitter cannot be unsplit.

        I'm not sure what the best way to handle this should be: do we simply  
use the behavior above, and prohibit unsplitting when the  
MinimumPanelSize is positive (since unsplitting reduces one panel to  
0), or do we add an instantiation-time-only parameter to control the  
behavior, with the default being the current behavior?

-- Ed



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to