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,7 +229,7 @@ bool wxDisclosureTriangle::Create(wxWindow *parent, wxWindowID id, const wxStrin
|
||||
OSStatus err = CreateDisclosureTriangleControl(
|
||||
MAC_WXHWND(parent->MacGetTopLevelWindowRef()) , &bounds,
|
||||
kControlDisclosureTrianglePointDefault,
|
||||
CFSTR("Test"),
|
||||
wxCFStringRef( label ),
|
||||
0, // closed
|
||||
TRUE, // draw title
|
||||
TRUE, // auto toggle back and forth
|
||||
@ -239,29 +239,20 @@ bool wxDisclosureTriangle::Create(wxWindow *parent, wxWindowID id, const wxStrin
|
||||
wxASSERT_MSG( m_peer != NULL && m_peer->Ok() , wxT("No valid Mac control") ) ;
|
||||
|
||||
MacPostControlCreate( pos, size );
|
||||
// passing the text in the param doesn't seem to work, so lets do if again
|
||||
SetLabel( label );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxDisclosureTriangle::SetOpen( bool open )
|
||||
{
|
||||
// TODO
|
||||
m_peer->SetValue( open ? 1 : 0 );
|
||||
}
|
||||
|
||||
bool wxDisclosureTriangle::IsOpen() const
|
||||
{
|
||||
// TODO
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxDisclosureTriangle::SetLabel( const wxString &label )
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
wxString wxDisclosureTriangle::GetLabel() const
|
||||
{
|
||||
return wxEmptyString;
|
||||
return m_peer->GetValue() == 1;
|
||||
}
|
||||
|
||||
wxInt32 wxDisclosureTriangle::MacControlHit( WXEVENTHANDLERREF WXUNUSED(handler) , WXEVENTREF WXUNUSED(event) )
|
||||
|
Loading…
Reference in New Issue
Block a user