New wxDC hierarchy

wxTE_PASWORD


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1998-12-01 12:55:09 +00:00
parent 5b6ec9803a
commit ec758a20a2
16 changed files with 752 additions and 608 deletions

View File

@@ -71,8 +71,8 @@ bool wxTextCtrl::Create( wxWindow *parent, wxWindowID id, const wxString &value,
SetValidator( validator );
bool bMultiLine = (style & wxTE_MULTILINE) != 0;
if ( bMultiLine )
bool multi_line = (style & wxTE_MULTILINE) != 0;
if ( multi_line )
{
// a multi-line edit control: create a vertical scrollbar by default and
// horizontal if requested
@@ -125,7 +125,7 @@ bool wxTextCtrl::Create( wxWindow *parent, wxWindowID id, const wxString &value,
PostCreation();
if (bMultiLine)
if (multi_line)
{
gtk_widget_realize(m_text);
gtk_widget_show(m_text);
@@ -143,12 +143,20 @@ bool wxTextCtrl::Create( wxWindow *parent, wxWindowID id, const wxString &value,
SetInsertionPointEnd();
}
if (style & wxTE_READONLY)
if (style & wxTE_PASSWORD)
{
if (!multi_line)
gtk_entry_set_visibility( GTK_ENTRY(m_text), FALSE );
}
if (style & wxTE_READONLY)
{
if (!multi_line)
gtk_entry_set_editable( GTK_ENTRY(m_text), FALSE );
}
else
{
if (bMultiLine)
if (multi_line)
gtk_text_set_editable( GTK_TEXT(m_text), 1 );
}