1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2000-11-03 15:52:17 -05:00
|
|
|
// Name: wx/generic/choicdgg.h
|
1998-05-20 10:01:55 -04:00
|
|
|
// Purpose: Generic choice dialogs
|
|
|
|
// Author: Julian Smart
|
2000-11-03 15:52:17 -05:00
|
|
|
// Modified by: 03.11.00: VZ to add wxArrayString and multiple sel functions
|
1998-05-20 10:01:55 -04:00
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
2004-05-23 10:56:36 -04:00
|
|
|
// Copyright: (c) wxWidgets team
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2006-10-28 10:11:54 -04:00
|
|
|
#ifndef _WX_GENERIC_CHOICDGG_H_
|
|
|
|
#define _WX_GENERIC_CHOICDGG_H_
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2000-11-03 15:52:17 -05:00
|
|
|
#include "wx/dynarray.h"
|
1998-05-20 10:01:55 -04:00
|
|
|
#include "wx/dialog.h"
|
1999-10-23 19:40:55 -04:00
|
|
|
|
2007-07-09 06:09:52 -04:00
|
|
|
class WXDLLIMPEXP_FWD_CORE wxListBoxBase;
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2000-11-03 15:52:17 -05:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// some (ugly...) constants
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
#define wxCHOICE_HEIGHT 150
|
|
|
|
#define wxCHOICE_WIDTH 200
|
|
|
|
|
2005-04-02 16:39:53 -05:00
|
|
|
#ifdef __WXWINCE__
|
|
|
|
#define wxCHOICEDLG_STYLE \
|
|
|
|
(wxDEFAULT_DIALOG_STYLE | wxOK | wxCANCEL | wxCENTRE)
|
|
|
|
#else
|
2003-04-17 18:23:49 -04:00
|
|
|
#define wxCHOICEDLG_STYLE \
|
|
|
|
(wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxOK | wxCANCEL | wxCENTRE)
|
2005-04-02 16:39:53 -05:00
|
|
|
#endif
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2000-11-03 15:52:17 -05:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxAnyChoiceDialog: a base class for dialogs containing a listbox
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxAnyChoiceDialog : public wxDialog
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
2000-11-03 15:52:17 -05:00
|
|
|
public:
|
2004-01-15 08:49:22 -05:00
|
|
|
wxAnyChoiceDialog() { }
|
2000-11-03 15:52:17 -05:00
|
|
|
|
|
|
|
wxAnyChoiceDialog(wxWindow *parent,
|
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption,
|
|
|
|
int n, const wxString *choices,
|
|
|
|
long styleDlg = wxCHOICEDLG_STYLE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
2004-01-15 08:49:22 -05:00
|
|
|
long styleLbox = wxLB_ALWAYS_SB)
|
|
|
|
{
|
|
|
|
(void)Create(parent, message, caption, n, choices,
|
|
|
|
styleDlg, pos, styleLbox);
|
|
|
|
}
|
2004-01-31 13:21:45 -05:00
|
|
|
wxAnyChoiceDialog(wxWindow *parent,
|
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption,
|
|
|
|
const wxArrayString& choices,
|
|
|
|
long styleDlg = wxCHOICEDLG_STYLE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
long styleLbox = wxLB_ALWAYS_SB)
|
|
|
|
{
|
|
|
|
(void)Create(parent, message, caption, choices,
|
|
|
|
styleDlg, pos, styleLbox);
|
|
|
|
}
|
2000-11-03 15:52:17 -05:00
|
|
|
|
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption,
|
|
|
|
int n, const wxString *choices,
|
|
|
|
long styleDlg = wxCHOICEDLG_STYLE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
long styleLbox = wxLB_ALWAYS_SB);
|
2004-01-31 13:21:45 -05:00
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption,
|
|
|
|
const wxArrayString& choices,
|
|
|
|
long styleDlg = wxCHOICEDLG_STYLE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
long styleLbox = wxLB_ALWAYS_SB);
|
2000-11-03 15:52:17 -05:00
|
|
|
|
|
|
|
protected:
|
2005-11-01 17:35:50 -05:00
|
|
|
wxListBoxBase *m_listbox;
|
|
|
|
|
|
|
|
virtual wxListBoxBase *CreateList(int n,
|
|
|
|
const wxString *choices,
|
|
|
|
long styleLbox);
|
2003-01-02 18:38:11 -05:00
|
|
|
|
2009-02-08 06:45:59 -05:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxAnyChoiceDialog);
|
2000-11-03 15:52:17 -05:00
|
|
|
};
|
1999-06-25 17:28:25 -04:00
|
|
|
|
2000-11-03 15:52:17 -05:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxSingleChoiceDialog: a dialog with single selection listbox
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxSingleChoiceDialog : public wxAnyChoiceDialog
|
2000-11-03 15:52:17 -05:00
|
|
|
{
|
1998-05-20 10:01:55 -04:00
|
|
|
public:
|
2004-01-15 08:49:22 -05:00
|
|
|
wxSingleChoiceDialog()
|
|
|
|
{
|
|
|
|
m_selection = -1;
|
|
|
|
}
|
2000-11-03 15:52:17 -05:00
|
|
|
|
1999-06-25 17:28:25 -04:00
|
|
|
wxSingleChoiceDialog(wxWindow *parent,
|
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption,
|
|
|
|
int n,
|
|
|
|
const wxString *choices,
|
|
|
|
char **clientData = (char **)NULL,
|
|
|
|
long style = wxCHOICEDLG_STYLE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition);
|
2004-01-31 13:21:45 -05:00
|
|
|
wxSingleChoiceDialog(wxWindow *parent,
|
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption,
|
|
|
|
const wxArrayString& choices,
|
|
|
|
char **clientData = (char **)NULL,
|
|
|
|
long style = wxCHOICEDLG_STYLE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition);
|
1999-06-25 17:28:25 -04:00
|
|
|
|
2000-11-03 15:52:17 -05:00
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption,
|
|
|
|
int n,
|
|
|
|
const wxString *choices,
|
|
|
|
char **clientData = (char **)NULL,
|
|
|
|
long style = wxCHOICEDLG_STYLE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition);
|
2004-01-31 13:21:45 -05:00
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption,
|
|
|
|
const wxArrayString& choices,
|
|
|
|
char **clientData = (char **)NULL,
|
|
|
|
long style = wxCHOICEDLG_STYLE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition);
|
2000-11-03 15:52:17 -05:00
|
|
|
|
|
|
|
void SetSelection(int sel);
|
|
|
|
int GetSelection() const { return m_selection; }
|
|
|
|
wxString GetStringSelection() const { return m_stringSelection; }
|
|
|
|
|
|
|
|
// obsolete function (NB: no need to make it return wxChar, it's untyped)
|
|
|
|
char *GetSelectionClientData() const { return (char *)m_clientData; }
|
|
|
|
|
|
|
|
// implementation from now on
|
|
|
|
void OnOK(wxCommandEvent& event);
|
2005-10-29 08:48:07 -04:00
|
|
|
#ifndef __SMARTPHONE__
|
2000-11-03 15:52:17 -05:00
|
|
|
void OnListBoxDClick(wxCommandEvent& event);
|
2005-10-29 08:48:07 -04:00
|
|
|
#endif
|
|
|
|
#ifdef __WXWINCE__
|
|
|
|
void OnJoystickButtonDown(wxJoystickEvent& event);
|
|
|
|
#endif
|
2000-11-03 15:52:17 -05:00
|
|
|
|
|
|
|
protected:
|
|
|
|
int m_selection;
|
|
|
|
wxString m_stringSelection;
|
|
|
|
|
2005-10-29 08:48:07 -04:00
|
|
|
void DoChoice();
|
|
|
|
|
2000-11-03 15:52:17 -05:00
|
|
|
private:
|
2003-07-21 20:24:07 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxSingleChoiceDialog)
|
2000-11-03 15:52:17 -05:00
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxMultiChoiceDialog: a dialog with multi selection listbox
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxMultiChoiceDialog : public wxAnyChoiceDialog
|
2000-11-03 15:52:17 -05:00
|
|
|
{
|
|
|
|
public:
|
2004-01-15 08:49:22 -05:00
|
|
|
wxMultiChoiceDialog() { }
|
2000-11-03 15:52:17 -05:00
|
|
|
|
|
|
|
wxMultiChoiceDialog(wxWindow *parent,
|
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption,
|
|
|
|
int n,
|
|
|
|
const wxString *choices,
|
|
|
|
long style = wxCHOICEDLG_STYLE,
|
2004-01-15 08:49:22 -05:00
|
|
|
const wxPoint& pos = wxDefaultPosition)
|
|
|
|
{
|
|
|
|
(void)Create(parent, message, caption, n, choices, style, pos);
|
|
|
|
}
|
2004-01-31 13:21:45 -05:00
|
|
|
wxMultiChoiceDialog(wxWindow *parent,
|
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption,
|
|
|
|
const wxArrayString& choices,
|
|
|
|
long style = wxCHOICEDLG_STYLE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition)
|
|
|
|
{
|
|
|
|
(void)Create(parent, message, caption, choices, style, pos);
|
|
|
|
}
|
1999-06-25 17:28:25 -04:00
|
|
|
|
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption,
|
2000-11-03 15:52:17 -05:00
|
|
|
int n,
|
|
|
|
const wxString *choices,
|
1999-06-25 17:28:25 -04:00
|
|
|
long style = wxCHOICEDLG_STYLE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition);
|
2004-01-31 13:21:45 -05:00
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption,
|
|
|
|
const wxArrayString& choices,
|
|
|
|
long style = wxCHOICEDLG_STYLE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition);
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2000-11-03 15:52:17 -05:00
|
|
|
void SetSelections(const wxArrayInt& selections);
|
|
|
|
wxArrayInt GetSelections() const { return m_selections; }
|
1998-05-20 10:01:55 -04:00
|
|
|
|
1999-06-25 17:28:25 -04:00
|
|
|
// implementation from now on
|
2000-11-03 16:11:41 -05:00
|
|
|
virtual bool TransferDataFromWindow();
|
1998-05-20 10:01:55 -04:00
|
|
|
|
|
|
|
protected:
|
2005-11-01 17:35:50 -05:00
|
|
|
#if wxUSE_CHECKLISTBOX
|
|
|
|
virtual wxListBoxBase *CreateList(int n,
|
|
|
|
const wxString *choices,
|
|
|
|
long styleLbox);
|
|
|
|
#endif // wxUSE_CHECKLISTBOX
|
|
|
|
|
2000-11-03 15:52:17 -05:00
|
|
|
wxArrayInt m_selections;
|
1999-06-25 17:28:25 -04:00
|
|
|
|
|
|
|
private:
|
2003-07-21 20:24:07 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxMultiChoiceDialog)
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
2000-11-03 15:52:17 -05:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wrapper functions which can be used to get selection(s) from the user
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// get the user selection as a string
|
2008-03-26 11:06:00 -04:00
|
|
|
WXDLLIMPEXP_CORE wxString wxGetSingleChoice(const wxString& message,
|
2000-11-03 15:52:17 -05:00
|
|
|
const wxString& caption,
|
|
|
|
const wxArrayString& choices,
|
2006-10-28 10:11:54 -04:00
|
|
|
wxWindow *parent = NULL,
|
2004-07-20 06:09:47 -04:00
|
|
|
int x = wxDefaultCoord,
|
|
|
|
int y = wxDefaultCoord,
|
2004-06-17 12:22:36 -04:00
|
|
|
bool centre = true,
|
2000-11-03 15:52:17 -05:00
|
|
|
int width = wxCHOICE_WIDTH,
|
2010-03-21 07:06:31 -04:00
|
|
|
int height = wxCHOICE_HEIGHT,
|
|
|
|
int initialSelection = 0);
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
WXDLLIMPEXP_CORE wxString wxGetSingleChoice(const wxString& message,
|
2000-11-03 15:52:17 -05:00
|
|
|
const wxString& caption,
|
|
|
|
int n, const wxString *choices,
|
2006-10-28 10:11:54 -04:00
|
|
|
wxWindow *parent = NULL,
|
2004-07-20 06:09:47 -04:00
|
|
|
int x = wxDefaultCoord,
|
|
|
|
int y = wxDefaultCoord,
|
2004-06-17 12:22:36 -04:00
|
|
|
bool centre = true,
|
2000-11-03 15:52:17 -05:00
|
|
|
int width = wxCHOICE_WIDTH,
|
2010-03-21 07:06:31 -04:00
|
|
|
int height = wxCHOICE_HEIGHT,
|
|
|
|
int initialSelection = 0);
|
|
|
|
|
|
|
|
WXDLLIMPEXP_CORE wxString wxGetSingleChoice(const wxString& message,
|
|
|
|
const wxString& caption,
|
|
|
|
const wxArrayString& choices,
|
|
|
|
int initialSelection,
|
|
|
|
wxWindow *parent = NULL);
|
|
|
|
|
|
|
|
WXDLLIMPEXP_CORE wxString wxGetSingleChoice(const wxString& message,
|
|
|
|
const wxString& caption,
|
|
|
|
int n, const wxString *choices,
|
|
|
|
int initialSelection,
|
|
|
|
wxWindow *parent = NULL);
|
1998-05-20 10:01:55 -04:00
|
|
|
|
|
|
|
// Same as above but gets position in list of strings, instead of string,
|
|
|
|
// or -1 if no selection
|
2008-03-26 11:06:00 -04:00
|
|
|
WXDLLIMPEXP_CORE int wxGetSingleChoiceIndex(const wxString& message,
|
2000-11-03 15:52:17 -05:00
|
|
|
const wxString& caption,
|
|
|
|
const wxArrayString& choices,
|
2006-10-28 10:11:54 -04:00
|
|
|
wxWindow *parent = NULL,
|
2004-07-20 06:09:47 -04:00
|
|
|
int x = wxDefaultCoord,
|
|
|
|
int y = wxDefaultCoord,
|
2004-06-17 12:22:36 -04:00
|
|
|
bool centre = true,
|
2000-11-03 15:52:17 -05:00
|
|
|
int width = wxCHOICE_WIDTH,
|
2010-03-21 07:06:31 -04:00
|
|
|
int height = wxCHOICE_HEIGHT,
|
|
|
|
int initialSelection = 0);
|
2000-11-03 15:52:17 -05:00
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
WXDLLIMPEXP_CORE int wxGetSingleChoiceIndex(const wxString& message,
|
2000-11-03 15:52:17 -05:00
|
|
|
const wxString& caption,
|
|
|
|
int n, const wxString *choices,
|
2006-10-28 10:11:54 -04:00
|
|
|
wxWindow *parent = NULL,
|
2004-07-20 06:09:47 -04:00
|
|
|
int x = wxDefaultCoord,
|
|
|
|
int y = wxDefaultCoord,
|
2004-06-17 12:22:36 -04:00
|
|
|
bool centre = true,
|
2000-11-03 15:52:17 -05:00
|
|
|
int width = wxCHOICE_WIDTH,
|
2010-03-21 07:06:31 -04:00
|
|
|
int height = wxCHOICE_HEIGHT,
|
|
|
|
int initialSelection = 0);
|
2000-11-03 15:52:17 -05:00
|
|
|
|
2010-03-21 07:06:31 -04:00
|
|
|
WXDLLIMPEXP_CORE int wxGetSingleChoiceIndex(const wxString& message,
|
|
|
|
const wxString& caption,
|
|
|
|
const wxArrayString& choices,
|
|
|
|
int initialSelection,
|
|
|
|
wxWindow *parent = NULL);
|
|
|
|
|
|
|
|
WXDLLIMPEXP_CORE int wxGetSingleChoiceIndex(const wxString& message,
|
|
|
|
const wxString& caption,
|
|
|
|
int n, const wxString *choices,
|
|
|
|
int initialSelection,
|
|
|
|
wxWindow *parent = NULL);
|
|
|
|
|
|
|
|
// Return client data instead or NULL if canceled
|
2008-03-26 11:06:00 -04:00
|
|
|
WXDLLIMPEXP_CORE void* wxGetSingleChoiceData(const wxString& message,
|
2000-11-03 15:52:17 -05:00
|
|
|
const wxString& caption,
|
|
|
|
const wxArrayString& choices,
|
|
|
|
void **client_data,
|
2006-10-28 10:11:54 -04:00
|
|
|
wxWindow *parent = NULL,
|
2004-07-20 06:09:47 -04:00
|
|
|
int x = wxDefaultCoord,
|
|
|
|
int y = wxDefaultCoord,
|
2004-06-17 12:22:36 -04:00
|
|
|
bool centre = true,
|
2000-11-03 15:52:17 -05:00
|
|
|
int width = wxCHOICE_WIDTH,
|
2010-03-21 07:06:31 -04:00
|
|
|
int height = wxCHOICE_HEIGHT,
|
|
|
|
int initialSelection = 0);
|
2000-11-03 15:52:17 -05:00
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
WXDLLIMPEXP_CORE void* wxGetSingleChoiceData(const wxString& message,
|
2000-11-03 15:52:17 -05:00
|
|
|
const wxString& caption,
|
|
|
|
int n, const wxString *choices,
|
|
|
|
void **client_data,
|
2006-10-28 10:11:54 -04:00
|
|
|
wxWindow *parent = NULL,
|
2004-07-20 06:09:47 -04:00
|
|
|
int x = wxDefaultCoord,
|
|
|
|
int y = wxDefaultCoord,
|
2004-06-17 12:22:36 -04:00
|
|
|
bool centre = true,
|
2000-11-03 15:52:17 -05:00
|
|
|
int width = wxCHOICE_WIDTH,
|
2010-03-21 07:06:31 -04:00
|
|
|
int height = wxCHOICE_HEIGHT,
|
|
|
|
int initialSelection = 0);
|
|
|
|
|
|
|
|
WXDLLIMPEXP_CORE void* wxGetSingleChoiceData(const wxString& message,
|
|
|
|
const wxString& caption,
|
|
|
|
const wxArrayString& choices,
|
|
|
|
void **client_data,
|
|
|
|
int initialSelection,
|
|
|
|
wxWindow *parent = NULL);
|
|
|
|
|
|
|
|
|
|
|
|
WXDLLIMPEXP_CORE void* wxGetSingleChoiceData(const wxString& message,
|
|
|
|
const wxString& caption,
|
|
|
|
int n, const wxString *choices,
|
|
|
|
void **client_data,
|
|
|
|
int initialSelection,
|
|
|
|
wxWindow *parent = NULL);
|
2000-11-03 15:52:17 -05:00
|
|
|
|
|
|
|
// fill the array with the indices of the chosen items, it will be empty
|
|
|
|
// if no items were selected or Cancel was pressed - return the number of
|
2009-03-07 10:39:09 -05:00
|
|
|
// selections or -1 if cancelled
|
|
|
|
WXDLLIMPEXP_CORE int wxGetSelectedChoices(wxArrayInt& selections,
|
2000-11-03 15:52:17 -05:00
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption,
|
|
|
|
int n, const wxString *choices,
|
2006-10-28 10:11:54 -04:00
|
|
|
wxWindow *parent = NULL,
|
2004-07-20 06:09:47 -04:00
|
|
|
int x = wxDefaultCoord,
|
|
|
|
int y = wxDefaultCoord,
|
2004-06-17 12:22:36 -04:00
|
|
|
bool centre = true,
|
2000-11-03 15:52:17 -05:00
|
|
|
int width = wxCHOICE_WIDTH,
|
|
|
|
int height = wxCHOICE_HEIGHT);
|
|
|
|
|
2009-03-07 10:39:09 -05:00
|
|
|
WXDLLIMPEXP_CORE int wxGetSelectedChoices(wxArrayInt& selections,
|
2000-11-03 15:52:17 -05:00
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption,
|
|
|
|
const wxArrayString& choices,
|
2006-10-28 10:11:54 -04:00
|
|
|
wxWindow *parent = NULL,
|
2004-07-20 06:09:47 -04:00
|
|
|
int x = wxDefaultCoord,
|
|
|
|
int y = wxDefaultCoord,
|
2004-06-17 12:22:36 -04:00
|
|
|
bool centre = true,
|
2000-11-03 15:52:17 -05:00
|
|
|
int width = wxCHOICE_WIDTH,
|
|
|
|
int height = wxCHOICE_HEIGHT);
|
|
|
|
|
2009-03-07 10:39:09 -05:00
|
|
|
#if WXWIN_COMPATIBILITY_2_8
|
|
|
|
// fill the array with the indices of the chosen items, it will be empty
|
|
|
|
// if no items were selected or Cancel was pressed - return the number of
|
|
|
|
// selections
|
|
|
|
wxDEPRECATED( WXDLLIMPEXP_CORE size_t wxGetMultipleChoices(wxArrayInt& selections,
|
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption,
|
|
|
|
int n, const wxString *choices,
|
|
|
|
wxWindow *parent = NULL,
|
|
|
|
int x = wxDefaultCoord,
|
|
|
|
int y = wxDefaultCoord,
|
|
|
|
bool centre = true,
|
|
|
|
int width = wxCHOICE_WIDTH,
|
|
|
|
int height = wxCHOICE_HEIGHT) );
|
|
|
|
|
|
|
|
wxDEPRECATED( WXDLLIMPEXP_CORE size_t wxGetMultipleChoices(wxArrayInt& selections,
|
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption,
|
|
|
|
const wxArrayString& choices,
|
|
|
|
wxWindow *parent = NULL,
|
|
|
|
int x = wxDefaultCoord,
|
|
|
|
int y = wxDefaultCoord,
|
|
|
|
bool centre = true,
|
|
|
|
int width = wxCHOICE_WIDTH,
|
|
|
|
int height = wxCHOICE_HEIGHT));
|
|
|
|
#endif // WXWIN_COMPATIBILITY_2_8
|
|
|
|
|
2006-10-28 10:11:54 -04:00
|
|
|
#endif // _WX_GENERIC_CHOICDGG_H_
|