The best way to scroll a text in a box

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
Mamo_Grag17
Earned some good credits
Earned some good credits
Posts: 107
Joined: Thu Mar 31, 2022 7:45 pm
Location: Morocco

The best way to scroll a text in a box

Post by Mamo_Grag17 »

Hello,

I have a static box that will hold some logging text, the box will hold a wxStaticText, then while the application is working, i want to show the user some logs, the problem now is i don't know how can the user scroll the text in wxSaticText,

If an easy way to make this work exists, please suggest it.
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: The best way to scroll a text in a box

Post by doublemax »

A wxStaticText is unsuitable for this. Try a borderless, read-only wxTextCtrl.
Use the source, Luke!
Post Reply