diff --git a/gwen/include/Gwen/Controls/Properties.h b/gwen/include/Gwen/Controls/Properties.h index bf3872e5..bfe33df6 100644 --- a/gwen/include/Gwen/Controls/Properties.h +++ b/gwen/include/Gwen/Controls/Properties.h @@ -37,6 +37,7 @@ namespace Gwen PropertyRow* Find( const TextObject & text ); virtual int GetSplitWidth(); + virtual void SetSplitWidth(int x); virtual void Clear(); diff --git a/gwen/src/Controls/Base.cpp b/gwen/src/Controls/Base.cpp index 93fa8c49..58497224 100644 --- a/gwen/src/Controls/Base.cpp +++ b/gwen/src/Controls/Base.cpp @@ -645,6 +645,10 @@ void Base::OnMouseLeave() if ( GetToolTip() ) { ToolTip::Disable( this ); } + else if (GetParent() && GetParent()->GetToolTip()) + { + ToolTip::Disable(GetParent()); + } Redraw(); } diff --git a/gwen/src/Controls/Properties.cpp b/gwen/src/Controls/Properties.cpp index 1c667f6f..fa6a90b9 100644 --- a/gwen/src/Controls/Properties.cpp +++ b/gwen/src/Controls/Properties.cpp @@ -23,6 +23,12 @@ GWEN_CONTROL_CONSTRUCTOR( Properties ) m_SplitterBar->DoNotIncludeInSize(); } +void Properties::SetSplitWidth(int x) +{ + m_SplitterBar->SetPos(x, 0); + InvalidateChildren(); +} + void Properties::PostLayout( Gwen::Skin::Base* /*skin*/ ) { if ( SizeToChildren( false, true ) )