From: Keiichi T. <bi...@ny...> - 2000-09-13 05:57:51
|
Hi Laurent, Thank you for your quick response! Immediately, I patched the file you sent, but the result seems the same as before as shown in test1b.gif. I tested this underline escape on simple button widget with msgcat and ja.msg. The sample script is 'button_ok.tcl' and the result is shown in test6a.gif. On purpose to compare with normal widget which has the same Japanese string without underline, 'button_ok_jp.tcl' is also implemented. (Sorry this includes Japanese characters....) The result is shown in test6b.gif. They show that calculation of string width for multi-byte character looks correct on normal widget such as button. But, on built-in widget, such as tk_messageBox and tk_getSaveFile and so on, the calculation may be incorrect for some reason, though I do not know why. I am very sorry that I have not enough time to look into sources of Tk in detail, but just let you know the result for your patch. Thanks. Keiichi -- Keiichi Takahashi, bitWalk Co.,Ltd. mailto:bi...@ny... http://members.xoom.com/tcltk/index.html |