Bug 400320

Summary: Add Button#getTextBounds()
Product: [Eclipse Project] Platform Reporter: Dani Megert <daniel_megert>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel.kruegler, markus.kell.r, robin
Version: 4.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Dani Megert CLA 2013-02-08 09:46:26 EST
4.3 M5a.

Dependent controls need to be horizontally aligned to the parent's text. We tried to compute the indent for dependent controls (see bug 341604 comment 5 for our closest solution) but failed because we do not have enough information, e.g. the margin between a check box and the starting text, or the margin after the text.

We need Button#getTextBounds() which will allow us to get the correct indent.