Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363274 - SWT: Possibility to set LabelPosition to top of the field
Summary: SWT: Possibility to set LabelPosition to top of the field
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Claudio Guglielmo CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-09 04:54 EST by Christoph Thommen CLA
Modified: 2021-08-19 11:07 EDT (History)
1 user (show)

See Also:


Attachments
Example Ticket Screen (31.62 KB, image/png)
2011-11-22 12:16 EST, Christoph Thommen CLA
no flags Details
mylyn/context/zip (29.99 KB, application/octet-stream)
2011-11-23 11:55 EST, Claudio Guglielmo CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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)