Tried to fix corrupted display of wxTextCtrl,
Corrected wxFileDialog's multiple file option. Corrected event mask for CaptureMouse(), Small change to "best visual" code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -607,6 +607,26 @@ void wxTextCtrl::SetEditable( bool editable )
|
||||
gtk_entry_set_editable( GTK_ENTRY(m_text), editable );
|
||||
}
|
||||
|
||||
bool wxTextCtrl::Enable( bool enable )
|
||||
{
|
||||
if (!wxWindowBase::Enable(enable))
|
||||
{
|
||||
// nothing to do
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (m_windowStyle & wxTE_MULTILINE)
|
||||
{
|
||||
gtk_text_set_editable( GTK_TEXT(m_text), enable );
|
||||
}
|
||||
else
|
||||
{
|
||||
gtk_widget_set_sensitive( m_text, enable );
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void wxTextCtrl::DiscardEdits()
|
||||
{
|
||||
m_modified = FALSE;
|
||||
|
Reference in New Issue
Block a user