Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse-dev] GridLayout with >2 columns and imaginary center line
  • From: "Hoepfner, Marcus" <marcus.hoepfner@xxxxxxx>
  • Date: Tue, 27 Sep 2022 12:37:09 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; 1; spf=pass; dmarc=pass action=none; dkim=pass; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed;; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3Or5vYk/UH72Jovx9ZW4PnWa40l2j6Ffaxkc3LjClfk=; b=EEPUsO4Y6lQiUsV28iwEXRB4Dtkw/w9kP80+dUGj0VfeUG0RWUheF+z+j5SyMhVe1kGSCHleS3EvRw4ewYZSQN3xYyjVOd8DmZs+Hkku3vFIU0plSatRhnA9eO9x4/YHX8poMnIt7o/cVUw2R9hbrYX3P/S/fI92DQ+zFbJ3Gput+DssExnCMD2sTkSKckHbWuKyiCaEezdguNefQxGu0Upl/c9X7fS7LXTmdcEQ8VRxSpUrKKHYXUg39fwq9c5iFzedO8QKqElhojscMfSCQ6qb4XynxmwKpaS4WYM/2F6ODxcSBHnUsm7Ix02YxCqG6yIsBD4yQiZw5ATdSytJtQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901;; cv=none; b=PH7Oa/MPEi7V2j9XgqOJWnajMwP8Ygm9IMPkXAPHni2QEIeEO/kzHvfSCUkjsx3kK8pqFagURERQTenkk/1FsZwgM5x710OVQmBKV3aqNz/biQ+FY4b5Lhon8lDZspy9JDvEeCxHglE+ZzeIMK8IbtuOsFtPJo5QVW4V4Z5CxdrIVorsPvMh5hUZ9PN80THfsI0cHDmegoAknq95U9yO/2nLEOysaP0NFF8XpNPskjw3w3yUaxiUsIUKEOCN20467ChUtshPopffbHOxd/ktHgpyQlFpdMcrwqihH+zf8thesXNE+XMIBIlK+Pi8dM/34dW/xueloO7XxeSMkmPBdg==
  • Delivered-to: eclipse-dev@xxxxxxxxxxx
  • List-archive: <>
  • List-help: <>
  • List-subscribe: <>, <>
  • List-unsubscribe: <>, <>
  • Thread-index: AQHY0lJaTt4B8bEz4kaIvd7mPOPXsq3zBN2AgAAfmTw=
  • Thread-topic: [eclipse-dev] GridLayout with >2 columns and imaginary center line

I forgot to mention, that there is more labels and text controls. In fact the number of controls is dynamic; it’s a UI framework, configured by the user. Also the span is configurable, means whether a label+text takes 100% width or just 50%.


Like this:

Label 1: Text 1___  Label 2: Text 2___

Label 3: Text 3___  Label 4: Text 4___

Label 5: Text 5_______________________

Label 6: Text 6___  Label 7: Text 7___

Label 8: Text 8_______________________

Label 9: Text 9_______________________



I’m afraid, that with the below proposal e.g. Label 1 and Label 3 would not take the same horizontal space if the text has a different length. Because were wall wrapped in separate composites.


From: Mickael Istria <mistria@xxxxxxxxxx>
Date: Tuesday, 27. September 2022 at 11:37
To: General development mailing list of the Eclipse project. <eclipse-dev@xxxxxxxxxxx>
Cc: Hoepfner, Marcus <marcus.hoepfner@xxxxxxx>
Subject: Re: [eclipse-dev] GridLayout with >2 columns and imaginary center line



1 parent composite with GridLayout(numColumns: 2, equalWidth: true) and 3 children:: 1 composite for `Label1: Text1________` another for `Label2: Text2_________` and another for `Label3: Text3________`. The latest one must has a GridData.horizontalSpan=2; each child composite has a GridLayout(2, false) and the Text have GridData.grabExcessibeHorizontalSpace=true.



Back to the top