Hi,
Quan Zongliang a écrit :
> [...]
> The attachment is a preview of import from ODBC.
>
> I think some ODBC source is slow. So in this page the preview
> will generated manually.
>
> First, the user select a DSN and input username and password (both is optional).
> Then click the <Refresh> button to retrive all table names.
> If successful, the DSN, username and password control will be disabled.
>
> And then, the user can select a table and click <Preview> to preview data.
> Or click <Reset> to select other DSN.
>
> The user can check "Auto preview" to preview automatically and set how many
> rows to be previewed.
>
> It's OK?
>
It seems good so far.
> Question:
> How to get the previous value in wxCombobox?
> Even if someone click the same choice, the EVT_COMBOBOX event will be fired.
> But the wxCommandEvent has no method to get previous value.
>
You may need to save the previous value in a variable.
--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com