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
wxtextCtrl and vertical scrollbar problem Topic is solved
-
- In need of some credit
- Posts: 2
- Joined: Tue Dec 03, 2019 2:40 pm
Re: wxtextCtrl and vertical scrollbar problem
Platform, wxWidgets version?
That should work out of the box. Can you post a small code sample that shows the issue?
That should work out of the box. Can you post a small code sample that shows the issue?
Use the source, Luke!
-
- In need of some credit
- Posts: 2
- Joined: Tue Dec 03, 2019 2:40 pm
Re: wxtextCtrl and vertical scrollbar problem
Hi
Solved! The problem was the wxObject* passed to wxTextCtrl constuctor (wxFrame instead of wxPanel).
Solved! The problem was the wxObject* passed to wxTextCtrl constuctor (wxFrame instead of wxPanel).