git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@675
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
EVT_TEXT_ENTER(wxID_PROP_TEXT, wxPropertyListView::OnText)
EVT_LISTBOX(wxID_PROP_SELECT, wxPropertyListView::OnPropertySelect)
EVT_COMMAND(wxID_PROP_SELECT, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxPropertyListView::OnPropertyDoubleClick)
EVT_TEXT_ENTER(wxID_PROP_TEXT, wxPropertyListView::OnText)
EVT_LISTBOX(wxID_PROP_SELECT, wxPropertyListView::OnPropertySelect)
EVT_COMMAND(wxID_PROP_SELECT, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxPropertyListView::OnPropertyDoubleClick)
- EVT_TEXT(wxID_PROP_VALUE_SELECT, wxPropertyListView::OnValueListSelect)
+ EVT_LISTBOX(wxID_PROP_VALUE_SELECT, wxPropertyListView::OnValueListSelect)
END_EVENT_TABLE()
bool wxPropertyListView::dialogCancelled = FALSE;
END_EVENT_TABLE()
bool wxPropertyListView::dialogCancelled = FALSE;
wxFont guiFont = settings.GetSystemFont(wxSYS_DEFAULT_GUI_FONT);
#ifdef __WXMSW__
wxFont guiFont = settings.GetSystemFont(wxSYS_DEFAULT_GUI_FONT);
#ifdef __WXMSW__
- wxFont *boringFont = wxTheFontList->FindOrCreateFont(guiFont.GetPointSize(), wxDEFAULT, wxNORMAL, wxNORMAL, FALSE, "Courier New");
+ wxFont *boringFont = wxTheFontList->FindOrCreateFont(guiFont.GetPointSize(), wxMODERN, wxNORMAL, wxNORMAL, FALSE, "Courier New");
- wxFont *boringFont = wxTheFontList->FindOrCreateFont(guiFont.GetPointSize(), wxMODERN, wxNORMAL, wxNORMAL);
+ wxFont *boringFont = wxTheFontList->FindOrCreateFont(guiFont.GetPointSize(), wxTELETYPE, wxNORMAL, wxNORMAL);
#endif
// May need to be changed in future to eliminate clashes with app.
#endif
// May need to be changed in future to eliminate clashes with app.
if (constraints)
{
if (show)
if (constraints)
{
if (show)
constraints->top.Below(valueList, 2);
constraints->top.Below(valueList, 2);
+ // Maintain back-pointer so when valueList is deleted,
+ // any reference to it from this window is removed.
+ valueList->AddConstraintReference(propertyScrollingList);
+ }
constraints->top.Below(valueText, 2);
constraints->top.Below(valueText, 2);
+ valueText->AddConstraintReference(propertyScrollingList);
+ }
propertyWindow->Layout();
}
}
propertyWindow->Layout();
}
}
EVT_SIZE(wxPropertyListPanel::OnSize)
END_EVENT_TABLE()
EVT_SIZE(wxPropertyListPanel::OnSize)
END_EVENT_TABLE()
+wxPropertyListPanel::~wxPropertyListPanel()
+{
+}
+
void wxPropertyListPanel::OnDefaultAction(wxControl *item)
{
/*
void wxPropertyListPanel::OnDefaultAction(wxControl *item)
{
/*
return FALSE;
wxString str(property->GetValue().GetStringRepresentation());
view->GetValueText()->SetValue(str.GetData());
return FALSE;
wxString str(property->GetValue().GetStringRepresentation());
view->GetValueText()->SetValue(str.GetData());
+ if (strings && view->GetValueList() && view->GetValueList()->Number() > 0)
{
view->GetValueList()->SetStringSelection(str.GetData());
}
{
view->GetValueList()->SetStringSelection(str.GetData());
}
+ ~wxPropertyListPanel();
void OnDefaultAction(wxControl *item);
inline void SetView(wxPropertyListView* v) { view = v; }
void OnDefaultAction(wxControl *item);
inline void SetView(wxPropertyListView* v) { view = v; }