Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363274

Summary: SWT: Possibility to set LabelPosition to top of the field
Product: z_Archived Reporter: Christoph Thommen <christoph.thommen>
Component: ScoutAssignee: Claudio Guglielmo <claudio.guglielmo>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: claudio.guglielmo
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
Example Ticket Screen
none
mylyn/context/zip none

Description Christoph Thommen CLA 2011-11-09 04:54:27 EST
There should be a possibility to position the label of a field on top of it.

Example see internal ticket.

Actually the only possibility is to add a separate LabelField. If doing so, mandatory validation (marking mandatory fields with a *, displaying Error Message,...) has to be done by hand.
Comment 1 Christoph Thommen CLA 2011-11-22 12:16:13 EST
Created attachment 207376 [details]
Example Ticket Screen

Example "Internal Ticket"
Comment 2 Claudio Guglielmo CLA 2011-11-23 11:55:13 EST
Created attachment 207435 [details]
mylyn/context/zip
Comment 3 Claudio Guglielmo CLA 2011-12-09 09:52:11 EST
Change request implemented on trunk (3.8.0) for Swing and SWT.

To move a label to the top of the field, set the property LabelPosition of a form field to IFormField.LABEL_POSITION_TOP. To control the horizontal alignment of the label you can use the property LabelHorizontalAlignment. So if your labels are aligned right as default you probably want to set the horizontal alignment of your top label to -1 so that it will be placed on the top left of your field.
Comment 4 Matthias Zimmermann CLA 2012-07-09 06:49:32 EDT
ticket closed.
deliverd as part of eclipse scout 3.8.0 (juno release train)