TextCtrl 如何设置期为不可编辑

TextCtrl 如何设置期为不可编辑

TextCtrl 如何设置期为不可编辑,谢谢

bool IsEditable(self)  
bool IsModified(self)  
这两个方法只是用来判断的,那怎么设置,谢谢
wxTextCtrl::SetEditable
virtual void SetEditable(const bool editable)

Makes the text item editable or read-only, overriding the wxTE_READONLY flag.

Parameters

editable

If true, the control is editable. If false, the control is read-only.
See also

IsEditable