// stausbar_row_col 2008.12.08 by あすかぜ // modified: 2008.12.09 by あるふぁ さん // // ・現在位置の表示を『[x,y]』ではなく、『y行, x列』に変更します。 // ・全体の行数・列数を表示します。 // 編集・再配布は自由です。 // // 使い方: // Cassava 1.6 以降で、[オプション]-[マクロ]-[ユーザマクロフォルダを開く] を実行し、 // 開いたフォルダ内にこのファイルを「!statusbar.cms」という名前で置いてください。 // Cassava を再起動すると有効になります。 function init(){ SetStatusBarCount(4); SetStatusBarWidth(1,80); SetStatusBarWidth(2,80); SetStatusBarWidth(3,80); } SetStatusBarText(1, y + "行, " + x + "列"); if(SelRight > SelLeft || SelBottom > SelTop){ SetStatusBarText(2, (SelBottom - SelTop + 1) + "行×" + (SelRight - SelLeft + 1) + "列"); SetStatusBarText(4, "SUM=" + sum(SelLeft, SelTop, SelRight, SelBottom)); }else{ SetStatusBarText(2, ""); SetStatusBarText(4, [x,y]); } SetStatusBarText(3, "全" + Bottom + "行, " + Right + "列");