moving collapsible pane a few steps forward os OSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9468cc47e6
commit
5dd1b7a669
@ -229,39 +229,30 @@ bool wxDisclosureTriangle::Create(wxWindow *parent, wxWindowID id, const wxStrin
|
|||||||
OSStatus err = CreateDisclosureTriangleControl(
|
OSStatus err = CreateDisclosureTriangleControl(
|
||||||
MAC_WXHWND(parent->MacGetTopLevelWindowRef()) , &bounds,
|
MAC_WXHWND(parent->MacGetTopLevelWindowRef()) , &bounds,
|
||||||
kControlDisclosureTrianglePointDefault,
|
kControlDisclosureTrianglePointDefault,
|
||||||
CFSTR("Test"),
|
wxCFStringRef( label ),
|
||||||
0, // closed
|
0, // closed
|
||||||
TRUE, // draw title
|
TRUE, // draw title
|
||||||
TRUE, // auto toggle back and forth
|
TRUE, // auto toggle back and forth
|
||||||
m_peer->GetControlRefAddr() );
|
m_peer->GetControlRefAddr() );
|
||||||
|
|
||||||
verify_noerr( err );
|
verify_noerr( err );
|
||||||
wxASSERT_MSG( m_peer != NULL && m_peer->Ok() , wxT("No valid Mac control") ) ;
|
wxASSERT_MSG( m_peer != NULL && m_peer->Ok() , wxT("No valid Mac control") ) ;
|
||||||
|
|
||||||
MacPostControlCreate( pos, size );
|
MacPostControlCreate( pos, size );
|
||||||
|
// passing the text in the param doesn't seem to work, so lets do if again
|
||||||
|
SetLabel( label );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxDisclosureTriangle::SetOpen( bool open )
|
void wxDisclosureTriangle::SetOpen( bool open )
|
||||||
{
|
{
|
||||||
// TODO
|
m_peer->SetValue( open ? 1 : 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxDisclosureTriangle::IsOpen() const
|
bool wxDisclosureTriangle::IsOpen() const
|
||||||
{
|
{
|
||||||
// TODO
|
return m_peer->GetValue() == 1;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
void wxDisclosureTriangle::SetLabel( const wxString &label )
|
|
||||||
{
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
wxString wxDisclosureTriangle::GetLabel() const
|
|
||||||
{
|
|
||||||
return wxEmptyString;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wxInt32 wxDisclosureTriangle::MacControlHit( WXEVENTHANDLERREF WXUNUSED(handler) , WXEVENTREF WXUNUSED(event) )
|
wxInt32 wxDisclosureTriangle::MacControlHit( WXEVENTHANDLERREF WXUNUSED(handler) , WXEVENTREF WXUNUSED(event) )
|
||||||
|
Loading…
Reference in New Issue
Block a user