corrected GetCharWidth and implemented MacSuperChangedPosition for toolbars

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2001-05-29 14:37:43 +00:00
parent ea7d85eb85
commit c257d44dd2
5 changed files with 253 additions and 6 deletions

View File

@@ -1276,10 +1276,9 @@ wxCoord wxDC::GetCharWidth(void) const
MacInstallFont() ;
FontInfo fi ;
::GetFontInfo( &fi ) ;
int width = ::TextWidth( "n" , 0 , 1 ) ;
return YDEV2LOGREL((fi.descent + fi.ascent) / 2) ;
return YDEV2LOGREL(width) ;
}
wxCoord wxDC::GetCharHeight(void) const