Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to create DynamicForm group but without group title - Please Help!

    I am just creating a simple dynamicform as a group but without grouptitle. But I do want the border. The problem is when it creates that border for group, it leaves that little gap on the top left near the corner. It is not edges as I tried to set it to false.
    --
    final DynamicForm form = new DynamicForm();
    form.setIsGroup(true);
    form.setShowEdges(false);
    ---
    I even tried to set the title to be nullString, it didn't work.
    I have attached the screen capture.

    How can I have a clean border without that gap near the top left corner?
    Please Help.
    Attached Files
    Last edited by test; 23 Mar 2011, 07:03.

    #2
    Don't set it as a group and define a form border instead.

    Comment


      #3
      So, there is no way to set a group but without a title and still have the default border without that gap?
      And, what is the color code for the default group border?

      Comment


        #4
        hi

        there is method in dynamic form
        setBorder(String)

        apply that avoid setIsgroup(true)

        eg:setBorder("1px solid black");

        do this

        also can do
        setIsgroup(true);
        setGroupTitle("");

        Comment


          #5
          Sorry that maybe I didn't describe the problem in detail.

          Before I started this thread, I have tried all the suggestions that are written here, but I still have that space gap up in the left near the corner.

          Here is what I had tried..combination of all these.
          --
          final String nullString = "";

          final DynamicForm form = new DynamicForm() {{
          setAttribute("groupTitle", nullString , false);
          setAttribute("titleSuffix", nullString, false);
          setAttribute("titlePrefix", nullString, false);
          setAttribute("titleWidth", 0, false);
          //setAttribute("numCols", 1, false);
          setAttribute("requiredTitlePrefix", nullString, false);
          setAttribute("requiredTitleSuffix", nullString, false);
          //setAttribute("groupLabelPadding", "", false);
          setAttribute("showEdges", 0, true);
          //setAttribute("extraSpace", 0, false);
          }};

          form.setExtraSpace(0);
          form.setIsGroup(true);
          form.setShowEdges(false);
          form.setGroupTitle(nullString);
          //form.setBorder("1px solid gray");
          -------

          And none of them worked.
          If you could please take a look at the attached screen capture or try to create a simple group without group title, you will see what I mean.

          I really need to figure this out, so please please help!~
          Last edited by test; 24 Mar 2011, 06:34.

          Comment

          Working...
          X