mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2019
Posts: 45
Q
quartz Offline OP
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Dec 2019
Posts: 45
is there any way to align the title of a box in a dialog, to the right or middle? (rather than default left)

Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
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.


Link Copied to Clipboard