We have built an application using wxWidgets in C++ and use wxToolTips to provide some information the end user when he points the mouse at something on the application. however I notice that the tooltips are automatically packaged neatly in new lines in mac. but in windows it comes as one single line,which doesnt look very appealing.
in mac: “this helps u increase the \n
brightness of the image\n
…………………….”
in win : “this helps u increase the brightness of the image……………………….”
Can anyone help me with this? I do not want to use new line characters and hardcode the tooltip into multiple lines
There is a static function
wxToolTip::SetMaxWidth(int width)on MSW that sets the width in pixels. You must call it before setting the wxToolTip, according to the docs.