Page 1 of 1

wxtextCtrl and vertical scrollbar problem

Posted: Wed Dec 04, 2019 1:38 pm
by ClaudioFidia
Hi
I am writing my first windows application with wxWidget. In my application I have a multiline wxTextControl that i use
as a log message box. If I put this box in a wxPanel object I can scroll all messages with the vertical scrollbar when there are
a lot of messages, but if I use the same text box inserted in a wxBoxSizer the vertical scrollbar is visible but I cannot scroll the
messages in the window.
Do I need to do something to enable the vertical scroolbar if the wxTextCtrl is inserted in a wxBoxSizer?
Thank you for help

Re: wxtextCtrl and vertical scrollbar problem

Posted: Wed Dec 04, 2019 1:50 pm
by doublemax
Platform, wxWidgets version?

That should work out of the box. Can you post a small code sample that shows the issue?

Re: wxtextCtrl and vertical scrollbar problem

Posted: Thu Dec 05, 2019 9:22 am
by ClaudioFidia
Hi

Solved! The problem was the wxObject* passed to wxTextCtrl constuctor (wxFrame instead of wxPanel).