Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 26991 - PDE preference pages do not honour dialog font
Summary: PDE preference pages do not honour dialog font
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Wassim Melhem CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 19346
  Show dependency tree
 
Reported: 2002-11-22 12:32 EST by Tod Creasey CLA
Modified: 2003-01-24 12:00 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tod Creasey CLA 2002-11-22 12:32:00 EST
20021115

The dialog font is not honoured by the PDE preference pages. Preference pages 
have the dialog font set as the font of the control sent to createContents - 
you can just copy the font from the parent to the children you create. Other 
dialogs can get it by calling JFaceResources.getDialogFont().
Comment 1 Tod Creasey CLA 2002-12-02 09:39:04 EST
public static applyDialogFont(Control control) has been added to Dialog. This 
can be called to apply the dialog font to the tree of a control whose font is 
the default font.

I could not hook this up by default because it causes some layout problems on 
many of the pages and dialogs we have if it is called after widget creation as 
sizing is frequently done in the creation code. We do not wish to generate any 
layout problems by the addition of this API.

I have also changed initializeBounds to use the dialog font for the 
calculations and not the font of the passed control. In the dialog provided by 
the workbench this will not do anything but for those dialogs provided by 
other components this will allow them to do the sizing before applying the 
dialog font.
Comment 2 Dejan Glozic CLA 2003-01-07 16:06:05 EST
Do we have to call this static method for each control or just for the parent 
container we create?
Comment 3 Tod Creasey CLA 2003-01-07 16:17:10 EST
Just for the top level control you want to apply this to - it will apply it to 
the entire child tree.
Comment 4 Wassim Melhem CLA 2003-01-24 12:00:41 EST
Fixed.