On Wed, Sep 8, 2010 at 12:02 AM, Chunlin Zhang <zhangchun...@gmail.com> wrote:
> John Labenski <jlaben...@...> writes:
>
>>
>> On Tue, Sep 7, 2010 at 1:48 AM, Chunlin Zhang <zhangchun...@...> wrote:
>> You can also simulate this using a wxListBox shown below the
>> wxTextCtrl/wxComboBox, but as with your menu you will need to call
>> wxWindow::SetFocus() to return the focus to the wxTextCtrl.
> Yesterday I try to use a dialog wo simulate this,but fail,the code is like 
> this:

I wouldn't use a wxDialog since that is a different window, just
create a wxListBox as a child of the window that the wxTextCtrl is on
and show it just below it. Note that you have to have enough room in
the parent window to contain the listbox. Then again a wxMenu might
also work. I've never tried it.

Regards,
    John

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to