Re: [dev] OO Dialog sizes - MapAppFont
Oliver Brinzing wrote: So is there a way to adjust the dialog size ? There is a setting in Tools-Options-View called User interface scaling. It allows to apply a scale factor to the App font height. And how does oo convert from MapAppFonts to pixels ? One AppFont unit is one eight of the height of the Application UI font in pixels. Kind regards, pl -- Sanity is just a bad excuse for a lack of imagination. -- Author unknown Registered Office: Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten Commercial register of the Local Court of Munich: HRB 161028 Managing Directors: Thomas Schröder, Wolfgang Engels, Wolf Frenkel Chairman of the Supervisory Board: Martin Häring - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] OO Dialog sizes - MapAppFont
Hi Frank, http://api.openoffice.org/docs/common/ref/com/sun/star/awt/XUnitConversion.html just found http://www.openoffice.org/issues/show_bug.cgi?id=94067 with an example :-) thanks Oliver -- GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45 signature.asc Description: OpenPGP digital signature
[dev] OO Dialog sizes - MapAppFont
Hi, can one give me a hint how to solve this problem ? OO uses MapAppFont metric for dialogs created with the basic ide editor. We are using different window styles for screen resolutions 1024x768 and 1280x1024. The styles use different font sizes too - this seems to be the, problems cause MapAppFont calculates with the font sizes ... Due to our ergonomic specifications we cannot adjust the styles to our needs. So OO will change the size of all dialogs when used with different styles. In out case a dialog created with the style for 1024x768 resolution appears about 25% to 28% bigger when displayed with the 1280x1024 style. On the other side resetting the style to windows default will make the dialog to small, using other screen resolutions (e.g. for wide screen 16:10 or 16:9) will cause problems too. So is there a way to adjust the dialog size ? And how does oo convert from MapAppFonts to pixels ? Oliver -- DSL-Preisknaller: DSL Komplettpakete von GMX schon für 16,99 Euro mtl.!* Hier klicken: http://portal.gmx.net/de/go/dsl02 - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] OO Dialog sizes - MapAppFont
Hi Oliver, And how does oo convert from MapAppFonts to pixels ? css.awt.XUnitConversion should allow this. The existing documentation at http://api.openoffice.org/docs/common/ref/com/sun/star/awt/XUnitConversion.html is somewhat sprase, this improved in the 3.2 version, which is not yet online (but if you have an OOo build somewhere, you'd find it in the odk module). The main point missing in the online doc is that you need to pass css.util.MeasureUnits to the various methods. MeasureUnit.APPFONT probably is what you'd need. The interface is implemented by all view objects, i.e. the dialog itself (not the dialog model) and the controls therein (not the control models). Ciao Frank -- - Frank Schönheit, Software Engineer frank.schoenh...@sun.com - - Sun Microsystems http://www.sun.com/staroffice - - OpenOffice.org Base http://dba.openoffice.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org