Re: about new module to software
| От | Quan Zongliang |
|---|---|
| Тема | Re: about new module to software |
| Дата | |
| Msg-id | 20090113145735.1393.4125B4E5@gmail.com обсуждение исходный текст |
| Ответ на | Re: about new module to software ("Dave Page" <dpage@pgadmin.org>) |
| Ответы |
Re: about new module to software
|
| Список | pgadmin-hackers |
> - Write a custom grid cell editor for use with Enum columns. When editing such
> a column, the user should be presented with a combobox containing the enum
> values to choose from.
new class had been defined with import module:
class pgGridCellChioceEditor : public wxGridCellChoiceEditor
{
public:
void Clear() { m_choices.Empty(); }
void SetItems(const wxArrayString& items) { m_choices = items; }
int Append(const wxString& item) { m_choices.Add(item); return m_choices.Count()-1; }
};
It's really simple, just for easy to be operated.
I did yesterday, without test.
-----------------------------------------------
Quan Zongliang
quanzongliang@gmail.com
CIT Japan: http://www.cit.co.jp
CIT China: http://www.citbj.com.cn
В списке pgadmin-hackers по дате отправления: