Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Set size of a form
Set size of a form [message #1130327] Wed, 09 October 2013 12:46 Go to next message
Remo von Arx is currently offline Remo von ArxFriend
Messages: 4
Registered: June 2013
Junior Member
Hi there


I have a simple form with some fields. When I open the form, it's size is to small to show all components. Where can I set the size of a form? When I change the Grid W & Grid H params, nothing happens.

I am looking for some kind of setSize(xwidth,yheight)-Method/param whatever. Is there something like this in Scout or do I have to use another way?


Thanks in advance for your answer Smile

[Updated on: Wed, 09 October 2013 12:47]

Report message to a moderator

Re: Set size of a form [message #1130373 is a reply to message #1130327] Wed, 09 October 2013 13:46 Go to previous messageGo to next message
Alex Schroeder is currently offline Alex SchroederFriend
Messages: 38
Registered: February 2010
Location: Zürich, Switzerland
Member

Strange, I never have to do this. Forms are always just the right size unless you have invisible fields when the form starts up which you then make visible at a later point in time. At least I remember once having that problem. Do you mind posting a small example?
Re: Set size of a form [message #1130383 is a reply to message #1130373] Wed, 09 October 2013 13:58 Go to previous messageGo to next message
Remo von Arx is currently offline Remo von ArxFriend
Messages: 4
Registered: June 2013
Junior Member
Thanks for your answer.

I attached to screenshots. One does show, how the form actually appears and the other one shows how the form should appear.


The form contains the following components:

Groupbox
-LongField
-Stringfield
-Button
-Button
usw.

Groupbox
-TableField
--Column
--Column
--Column
--Column
--Column
--Column
usw.

Groubox
-Button
-Button
usw.

I created all of them through the Scout Explorer-Wizard.

What do you think, could be a way of solution?
  • Attachment: pic49.jpg
    (Size: 82.98KB, Downloaded 241 times)
  • Attachment: pic48.jpg
    (Size: 51.44KB, Downloaded 242 times)
Re: Set size of a form [message #1130395 is a reply to message #1130383] Wed, 09 October 2013 14:08 Go to previous messageGo to next message
Alex Schroeder is currently offline Alex SchroederFriend
Messages: 38
Registered: February 2010
Location: Zürich, Switzerland
Member

Yikes. Smile

Here's some code from a table I use in a form of mine:

        @Order(30.0)
        public class LogBox extends AbstractGroupBox {

          @Override
          protected String getConfiguredLabel() {
            return TEXTS.get("Log");
          }

          @Order(10.0)
          public class LogField extends AbstractTableField {

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

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

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

            @Order(10.0)
            public class Table extends AbstractTable {

              ...

            }
          }
        }


See whether you have set a Grid H for the TableField?

[Updated on: Wed, 09 October 2013 14:08]

Report message to a moderator

Re: Set size of a form [message #1131328 is a reply to message #1130395] Thu, 10 October 2013 12:25 Go to previous message
Remo von Arx is currently offline Remo von ArxFriend
Messages: 4
Registered: June 2013
Junior Member
Guys I solved this. The problem were the group boxes I am using. I didn't notice that the other elements inherithed the height and width of the component with the highest value.

Thanks for your answers Smile
Previous Topic:Problems with Luna Nightly Runtime and ListBox
Next Topic:Pagination - Dealing with large data sets
Goto Forum:
  


Current Time: Tue Apr 23 08:43:27 GMT 2024

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

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

Back to the top