mIRC Home    About    Download    Register    News    Help

Print Thread
#258233 20/06/16 05:29 PM
Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
When using /drawtext -p with tabs it appears mIRC does not calculate the correct length for the text. Weirder, is that it varies from draw to draw:

Code:
alias testdt {
  var %tab = $chr(9)
  window -p @testdt -1 -1 1000 1000 consolas 11
  clear -@ @testdt

  drawtext -p @testdt $color(text) consolas 11 10 10 a       %tab 106.87 %tab 383.14 %tab 254.82 %tab 475.6 %tab 197.66 %tab 613.85
  drawtext -p @testdt $color(text) consolas 11 10 25 abc     %tab 106.87 %tab 383.14 %tab 254.82 %tab 475.6 %tab 197.66 %tab 613.85
  drawtext -p @testdt $color(text) consolas 11 10 40 abcdefg %tab 106.87 %tab 383.14 %tab 254.82 %tab 475.6 %tab 197.66 %tab 613.85
}


results in something akin to:

Last edited by FroggieDaFrog; 20/06/16 05:32 PM.

I am SReject
My Stuff
Joined: Dec 2002
Posts: 5,424
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,424
Thanks, this issue should be fixed for the next version. It was due to -p clipping not taking tab characters into account.


Link Copied to Clipboard