mIRC Homepage

box in a dialog (grouping box), title text

Posted By: quartz

box in a dialog (grouping box), title text - 03/08/20 11:49 AM

is there any way to align the title of a box in a dialog, to the right or middle? (rather than default left)
Posted By: maroon

Re: box in a dialog (grouping box), title text - 04/08/20 10:15 AM

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.
© 2021 mIRC Discussion Forums