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:
'''
    self.mydlg:Show()
    self:SetFocus()
    self.m_textCtrl:SetFocus()
'''
but the textCtrl still lost the focus and can not input anymore,I don't know it
will happen if I use wxListBox.

And I have no idea how to use wxListBox to do this.Should I create a wxListBox
with its parent is mainframe?When I want it show ,I invoke listbox:Show().

I will try and give the result.

Thank for your help.

> 
> The development/next version > 2.9.x of wxWidgets has a function to do
> this for you.
> 
> 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