機能:
ウィンドウの大きさを変更したときに、テキストのサイズを調整する。
ウィンドウの大きさを変更したときに、テキストのサイズを調整する。
アルゴリズム:
(windowwidth,windowheight)が新しいウィンドウの長方形のサイズ(constwidth,constheight)がそれまでのサイズ。
(windowwidth,windowheight)が新しいウィンドウの長方形のサイズ(constwidth,constheight)がそれまでのサイズ。
横方向は windowwidth/constwidth 倍、
縦方向は (windowheight-50)/(constheight-50)倍
フォントサイズは縦方向と同じ倍率で拡大・縮小する。
縦方向は (windowheight-50)/(constheight-50)倍
フォントサイズは縦方向と同じ倍率で拡大・縮小する。
参照:
- void MyCanvas::OnModeZoomIn?(double rate)
引用:
- void MyCanvas::OnSize?()
- void MyFrame::OnOpen?(wxCommandEvent& event)