Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Info-Field inside a form
Info-Field inside a form [message #1067979] Thu, 11 July 2013 10:10 Go to next message
Eclipse UserFriend
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 13:57 Go to previous message
Eclipse UserFriend
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: Fri Jul 25 05:22:39 EDT 2025

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

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

Back to the top