how to set Dialog Caption
-
- Earned a small fee
- Posts: 20
- Joined: Wed Feb 20, 2013 5:41 am
how to set Dialog Caption
how to set Dialog Caption in different position,give idea
Re: how to set Dialog Caption
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.
-
- Earned a small fee
- Posts: 20
- Joined: Wed Feb 20, 2013 5:41 am
Re: how to set Dialog Caption
Sorry,doublemax wrote:I don't know what you mean.
how to set Dialog title center or right position?
-
- Earned a small fee
- Posts: 20
- Joined: Wed Feb 20, 2013 5:41 am
Re: how to set Dialog Caption
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.
Re: how to set Dialog Caption
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.
- nelson777
- Earned some good credits
- Posts: 117
- Joined: Mon Sep 19, 2005 3:50 pm
- Location: Fortaleza - Brasil
Re: how to set Dialog Caption
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.