// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) wxWindows team
-// Licence: wxWindows license
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// ============================================================================
#define wxID_LISTBOX 3000
-#if defined(__WXMSW__) || defined(__WXMAC__)
-#define wxCHOICEDLG_DIALOG_STYLE (wxDEFAULT_DIALOG_STYLE | \
- wxDIALOG_MODAL | \
- wxTAB_TRAVERSAL)
-#else
-#define wxCHOICEDLG_DIALOG_STYLE (wxDEFAULT_DIALOG_STYLE | \
- wxDIALOG_MODAL | \
- wxRESIZE_BORDER | \
- wxTAB_TRAVERSAL)
-#endif
-
// ----------------------------------------------------------------------------
// private functions
// ----------------------------------------------------------------------------
// Overloaded for backward compatibility
wxString wxGetSingleChoice( const wxString& message,
const wxString& caption,
- int n, char *choices[],
+ int n, wxChar *choices[],
wxWindow *parent,
int x, int y, bool centre,
int width, int height )
const wxPoint& pos,
long styleLbox)
{
- if ( !wxDialog::Create(parent, -1, caption, pos, wxDefaultSize,
- wxCHOICEDLG_DIALOG_STYLE) )
+ if ( !wxDialog::Create(parent, -1, caption, pos, wxDefaultSize, styleDlg) )
return FALSE;
wxBoxSizer *topsizer = new wxBoxSizer( wxVERTICAL );
{
m_selection = m_listbox->GetSelection();
m_stringSelection = m_listbox->GetStringSelection();
- // TODO!
-#ifndef __WXMOTIF__
if ( m_listbox->HasClientUntypedData() )
-#endif
SetClientData(m_listbox->GetClientData(m_selection));
EndModal(wxID_OK);
}
m_selection = m_listbox->GetSelection();
m_stringSelection = m_listbox->GetStringSelection();
- // TODO!
-#ifndef __WXMOTIF__
if ( m_listbox->HasClientUntypedData() )
-#endif
SetClientData(m_listbox->GetClientData(m_selection));
EndModal(wxID_OK);
bool wxMultiChoiceDialog::TransferDataFromWindow()
{
- // VZ: I hate to do it but I can't fix wxMotif right now (FIXME)
-#ifdef __WXMOTIF__
- #define IsSelected Selected
-#endif
-
m_selections.Empty();
size_t count = m_listbox->GetCount();
for ( size_t n = 0; n < count; n++ )