Status box formatting issues
This issue was not reproduced in my environment, Tera Term 4.96 on Windows 8.1.
Reply To (Anonymous)
Thank you for looking at this issue Maya. I am seeing different results, as you can see. I notice there is a slightly newer version available - I will update and try it. I also notice that your font / formatting looks different (for example, the title bar is centered instead of left justified). I am using Windows 10 with (I believe) the default settings for text size / font / style. I'd be happy to change to a different style if that would fix the issue - if you could provide the info for what you're using. Thanks. -James
Reply To jmckenna
Reply To (Anonymous) Thank you for looking at this issue Maya. I am seeing different results, as you can see. I notice there is a slightly newer version available - I will update and try it. I also notice that your font / formatting looks different (for example, the title bar is centered instead of left justified). I am using Windows 10 with (I believe) the default settings for text size / font / style. I'd be happy to change to a different style if that would fix the issue - if you could provide the info for what you're using. Thanks. -James
I just updated to 4.96. Sadly this did not fix the issue. Any suggestions would be welcome. Thank you.
OK, I found a workaround. It seems that this happens only the first time that TeraTerm opens a status box. So the workaround is to add a "dummy" status box right before you pop the first real status box. For example:
statusbox "foo" "bar"
Note that after using "closesbox", the problem seems to reoccur on the next status box. So you need to open a dummy status box again before popping up the real one.
I admit this is a hack, but it fixes the problem for me.
Note: I am using TeraTerm 4.96 with Windows 10 and current with all Microsoft updates. Problem also existed in 4.93, and though I did not test this workaround I would guess it will probably work.
Hmm. I run this macro at Windows 10, and Tera Term 4.96. But this issue did not reproduce.
This snapshot shows a debug message box when statusbox command.
https://osdn.net/downloads/users/16/16276/snapshot-20171113-maya-statusbox.zip
Please let us know result of statusbox, like followings:
--------------------------- CStatDlg::Update --------------------------- WW=116 WH=83 TW=457 TH=162 s.cx=416 s.cy=162 --------------------------- OK --------------------------- --------------------------- CStatDlg::Relocation --------------------------- init=1 TW=457 WW=465 WH=199 --------------------------- OK ---------------------------
And result of when use dummy statusbox and repeat statusbox.
Thanks,
Formatting is incorrect when using status box with special characters ("\n"). For example:
Last line is cut off, as is the last word in line "4)".