wxtextCtrl and vertical scrollbar problem Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
ClaudioFidia
In need of some credit
In need of some credit
Posts: 2
Joined: Tue Dec 03, 2019 2:40 pm

wxtextCtrl and vertical scrollbar problem

Post by ClaudioFidia » Wed Dec 04, 2019 1:38 pm

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

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

Re: wxtextCtrl and vertical scrollbar problem

Post by doublemax » Wed Dec 04, 2019 1:50 pm

Platform, wxWidgets version?

That should work out of the box. Can you post a small code sample that shows the issue?
Use the source, Luke!

ClaudioFidia
In need of some credit
In need of some credit
Posts: 2
Joined: Tue Dec 03, 2019 2:40 pm

Re: wxtextCtrl and vertical scrollbar problem

Post by ClaudioFidia » Thu Dec 05, 2019 9:22 am

Hi

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

Post Reply