does wxTAB_TRAVERSAL work on Linux for multi-line TextCtl? Topic is solved

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
gmapp
Earned a small fee
Earned a small fee
Posts: 14
Joined: Wed Jan 24, 2018 4:39 pm

does wxTAB_TRAVERSAL work on Linux for multi-line TextCtl?

Post by gmapp » Wed Feb 07, 2018 7:11 pm

Dear all,
I have again a problem with my wxWidget application.
The wxTAB_TRAVERSAL property seams do not work on Linux for multi-line TextCtl. The same code works on Windows, and it works on Linux if the TextCtl is Read-only or not Multi-line.
Any ideas?
Here a demo code:

Code: Select all

wx01Frame::wx01Frame(wxWindow* parent,wxWindowID id){
    wxFlexGridSizer* FlexGridSizer1;
    Create(parent, wxID_ANY, _("Base wxWidgets."), wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, _T("wxID_ANY"));
    SetClientSize(wxDefaultSize);
    Panel1 = new wxPanel(this, ID_PANEL1, wxPoint(152,88), wxDefaultSize, wxTAB_TRAVERSAL, _T("ID_PANEL1"));
    FlexGridSizer1 = new wxFlexGridSizer(2, 1, 0, 0);
    FlexGridSizer1->AddGrowableCol(0);
    FlexGridSizer1->AddGrowableRow(0);
    TextCtrl1 = new wxTextCtrl(Panel1, ID_TEXTCTRL1, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxVSCROLL, wxDefaultValidator, _T("ID_TEXTCTRL1"));
    FlexGridSizer1->Add(TextCtrl1, 1, wxALL|wxEXPAND, 5);
    Button1 = new wxButton(Panel1, ID_BUTTON1, _("Button 1"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON1"));
    FlexGridSizer1->Add(Button1, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
    Panel1->SetSizer(FlexGridSizer1);
    FlexGridSizer1->Fit(Panel1);
    FlexGridSizer1->SetSizeHints(Panel1);
}

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4425
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: does wxTAB_TRAVERSAL work on Linux for multi-line TextCtl?

Post by ONEEYEMAN » Wed Feb 07, 2018 8:46 pm

Hi,
Which version of wx do you use?
This problem was fixed very recently by Vadim. Just check the commit log and drop this patch in your tree, recompile and you will be good to go.

Thank you.

gmapp
Earned a small fee
Earned a small fee
Posts: 14
Joined: Wed Jan 24, 2018 4:39 pm

Re: does wxTAB_TRAVERSAL work on Linux for multi-line TextCtl?

Post by gmapp » Thu Feb 08, 2018 1:16 pm

Hi,
I'm using on Linux 3.0.3 and I also tried 3.1.0.
With both, the wxTAB_TRAVERSAL doesn't work in my program.
Where can I find the path of Vadim?

Many thanks

User avatar
doublemax
Moderator
Moderator
Posts: 15174
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: does wxTAB_TRAVERSAL work on Linux for multi-line TextCtl?

Post by doublemax » Thu Feb 08, 2018 1:46 pm

Use the source, Luke!

gmapp
Earned a small fee
Earned a small fee
Posts: 14
Joined: Wed Jan 24, 2018 4:39 pm

Re: does wxTAB_TRAVERSAL work on Linux for multi-line TextCtl?

Post by gmapp » Thu Feb 08, 2018 4:34 pm

Thanks ONEEYEMAN, thanks doublemax,

I get and built the last version from github... and now my app works also on Linux.

Many thanks

Post Reply