RE: can i use MAP_PIXEL instead of APPFONT?
limerlin <[email protected]>
| Newsgroups | gmane.comp.openoffice.devel.general |
|---|---|
| Message-ID | <[email protected]> |
Frank ,thank you very much. > Date: Mon, 6 Dec 2010 09:19:39 +0100 > From: [email protected] > To: [email protected] > Subject: Re: [dev] can i use MAP_PIXEL instead of APPFONT? > > Hi limerlin, > > > in XXX.src file: > > Set the size and location use of MAP_APPFONT > > > > My question is:Why use MAP_APPFONT? Can i use MAP_PIXEL? > > I think MAP_PIXEL more convenient。 > > While pixel might be more convenient, it would be a guaranteed way to > break your dialogs. AppFont units are converted to pixels at runtime, > based on your font size. This ensures that your text still fits into to > the dialog and the controls. If you were using pixels, then the dialog > would not scale with different font sizes, in particular, with different > desktop themes. > > So, no, there is no way to use pixel units in resource files. > > Ciao > Frank > > -- > ORACLE > Frank Schönheit | Software Engineer | [email protected] > Oracle Office Productivity: http://www.oracle.com/office > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >