Files
l7/L7/LItemData.h
SET 585c56bc33 Allow the text control of BasePicker to show indefinite string length.
Otherwise, the text control gets empty if the string length is > 33 !
2020-06-06 21:07:39 +02:00

44 lines
717 B
C++

/*
* File: ltItemData.h
* Author: SET - nmset@yandex.com
* License : LGPL version 2.1
* Copyright SET, M. D. - © 2014
*
* Created on 24 mai 2014, 20:26
*/
#ifndef LITEMDATA_H
#define LITEMDATA_H
#include <wx/wx.h>
/**
Holds translated values for LComboBox items as wxClientData.
*
*/
class LItemData : public wxClientData
{
public:
LItemData(const long newData);
LItemData(const wxString newData);
LItemData(const wxAny newData);
virtual ~LItemData();
wxAny GetData()
{
return m_data;
}
long GetLong();
wxString GetString();
void SetValue(wxAny newData)
{
m_data = newData;
}
private:
wxAny m_data;
};
#endif /* LITEMDATA_H */