// wxChoice
//-----------------------------------------------------------------------------
-IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControlWithItems)
-
wxChoice::wxChoice()
{
- m_strings = (wxSortedArrayString *)NULL;
+ m_strings = NULL;
}
bool wxChoice::Create( wxWindow *parent, wxWindowID id,
{
wxCHECK_RET( m_widget != NULL, wxT("invalid choice") );
- wxCHECK_RET( IsValid(n), _T("invalid index in wxChoice::Delete") );
+ wxCHECK_RET( IsValid(n), wxT("invalid index in wxChoice::Delete") );
// if the item to delete is before the selection, and the selection is valid
if (((int)n < m_selection_hack) && (m_selection_hack != wxNOT_FOUND))
while (child)
{
GtkBin *bin = GTK_BIN( child->data );
- GtkLabel *label = (GtkLabel *) NULL;
+ GtkLabel *label = NULL;
if (bin->child)
label = GTK_LABEL(bin->child);
if (!label)
GtkBin *bin = GTK_BIN( child->data );
if (count == n)
{
- GtkLabel *label = (GtkLabel *) NULL;
+ GtkLabel *label = NULL;
if (bin->child)
label = GTK_LABEL(bin->child);
if (!label)
GtkBin *bin = GTK_BIN( child->data );
if (count == n)
{
- GtkLabel *label = (GtkLabel *) NULL;
+ GtkLabel *label = NULL;
if (bin->child)
label = GTK_LABEL(bin->child);
if (!label)
gtk_widget_modify_style( GTK_WIDGET( child->data ), style );
GtkBin *bin = GTK_BIN( child->data );
- GtkWidget *label = (GtkWidget *) NULL;
+ GtkWidget *label = NULL;
if (bin->child)
label = bin->child;
if (!label)
if ( index )
{
m_clientList.Insert( m_clientList.Item(index - 1),
- (wxObject*) NULL );
+ NULL );
}
else
{
- m_clientList.Insert( (wxObject*) NULL );
+ m_clientList.Insert( NULL );
}
}
else
if (pos == m_clientList.GetCount())
{
gtk_menu_append( GTK_MENU(menu), menu_item );
- m_clientList.Append( (wxObject*) NULL );
+ m_clientList.Append( NULL );
index = m_clientList.GetCount() - 1;
}
else
{
gtk_menu_insert( GTK_MENU(menu), menu_item, pos );
- m_clientList.Insert( pos, (wxObject*) NULL );
+ m_clientList.Insert( pos, NULL );
index = pos;
}
}