Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Info-Field inside a form
Info-Field inside a form [message #1067979] Thu, 11 July 2013 14:10 Go to next message
Mirjam B. is currently offline Mirjam B.Friend
Messages: 8
Registered: June 2013
Junior Member
Hey,

which field should I use for an info text inside a form? It should not be editable, but support multiline texts. The LabelField didn't work for me.

Thanks for your suggestions Smile
Re: Info-Field inside a form [message #1068024 is a reply to message #1067979] Thu, 11 July 2013 17:57 Go to previous message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
I use an HtmlField on top of my form. It works nice with Swing (I am not sure of the behaviour with SWT).

Notice that you can also use basic HTML in the LabelField with Swing (this produces multiline text). This do not work with SWT.

@Order(10.0)
public class InfoField extends AbstractLabelField {

  @Override
  protected int getConfiguredGridW() {
    return 2;
  }

  @Override
  protected int getConfiguredGridH() {
    return 2;
  }

  @Override
  protected boolean getConfiguredLabelVisible() {
    return false;
  }

  @Override
  protected void execInitField() throws ProcessingException {
    setValue("<html>Please <b>select</b> one of the questions.<br>And use the context menu.</html>");
  }
}

Previous Topic:Accessing startup parameters
Next Topic:Drag and Drop TransferType issue?
Goto Forum:
  


Current Time: Thu Apr 25 19:04:50 GMT 2024

Powered by FUDForum. Page generated in 0.03023 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top