mIRC Home    About    Download    Register    News    Help

Print Thread
box in a dialog (grouping box), title text #267534 03/08/20 11:49 AM
Joined: Dec 2019
Posts: 30
Q
quartz Offline OP
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Dec 2019
Posts: 30
is there any way to align the title of a box in a dialog, to the right or middle? (rather than default left)

Re: box in a dialog (grouping box), title text [Re: quartz] #267544 04/08/20 10:15 AM
Joined: Jan 2004
Posts: 1,385
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,385
Only way I know is using $chr(160)'s or similar to push the text where you want it. But this would require knowing the font/size of the title text, so you can use $width to calculate how much padding. Another drawback is that this leaves a box gap to the left of the text, which you'd either leave as-is, or pad an equal amount to the right so it looks balanced.