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.
7 posts • Page 1 of 1
I think he means "dialog title". However, there is no way to align the text into different positions, unless you calculate window size, character width anf fill with empty spaces.
Thanks,any other way to set the dialog captionmodoran wrote:I think he means "dialog title". However, there is no way to align the text into different positions, unless you calculate window size, character width anf fill with empty spaces.
Positioning the title text on the titlebar is controlled by the operating system settings and it cannot be changed on per application basis. The application can only specify the text for the titlebar but it cannot specify whether the text will be centered or edge adjusted or what font will be used for displaying the text. I don't think your chances are good here.
- Earned some good credits
- Posts: 117
- Joined: Mon Sep 19, 2005 3:50 pm
- Location: Fortaleza - Brasil
Well, it's controlled by the system, but if I were to try this, maybe I could calculate the aproximate number of characters the title would be able to show, based on the font width and window width and then add enough number of spaces to the title in order to right align it or center it. But I don't know if it would work for all cases because it would depend on system font. But maybe you can give it a try.