Allow viewing read-only long string wxPropertyGrid properties values.
When wxLongStringProperty is read-only, it should still be possible to view its value by opening the dialog normally used for editing it, otherwise this value cannot be seen (nor copied, which is also useful sometimes) at all. Closes #14945. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2019,7 +2019,7 @@ wxWindow* wxPropertyGrid::GenerateEditorButton( const wxPoint& pos, const wxSize
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if ( selected->HasFlag(wxPG_PROP_READONLY) )
|
||||
if ( selected->HasFlag(wxPG_PROP_READONLY) && !selected->HasFlag(wxPG_PROP_ACTIVE_BTN) )
|
||||
but->Disable();
|
||||
|
||||
return but;
|
||||
|
Reference in New Issue
Block a user