Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipse-dev] GridLayout with >2 columns and imaginary center line
  • From: "Hoepfner, Marcus" <marcus.hoepfner@xxxxxxx>
  • Date: Tue, 27 Sep 2022 09:30:59 +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=XoU/JDyhiCU325DYcI0KqvywHZ+kOKabV6ItwvERS0U=; b=hRpe5yutJNxERHWj7a7l7ZoBmFaF4A0Q11AQZhtYU44x8rfKJ6WLdy/fyRvwyX3MBhKdH3O/1ORzqr64ik02v9UmdGXetaqNr/bMG6f44wg7XJFLW8pEQ2EeucoPSoOrtO9tfIZrqZsvn5Q5sEqYPa4uDoVUmG6hVlKCOIfaHlZH5DZboV8nuqs4OGJAB9wNKe5fGzfWYZZXPWcE2udHfgCrG0dURefH4L8kCpGqfxZWa4IEQHQARrvLuHu88pIR7/iPjJ1MOPquctP3MRP1Bk/glNUw/ITgctQB7e5co8uuA30cgTgkSPcb5h7NDPD2m66hdmDAHQaW+PXf4p40gQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901;; cv=none; b=DogJg9JEfKHVPm5LlIYbx41ZQZazg8aDu3CPc+Voxa2jWF7umPj1bz3zwOMs8iPTGMzlZ62KITRJ0dK5vgeNYfL0+nPo+NodnybNZQo57lfEeNGGHir4JPnoIHtuLtelId8F+FH+FgvkxMYiDtshfZmjJHcK5Jw8WyITHiDVT7w7wmvuB2B0brVxbkoVOs562zui1U5C7yAIHTUtUFkrDSnHNB6ov4zSIDzBIjhGD9nVWEcchXY4b5AbsB0hglHNwUTlBEzSEA9IQiHBmU5uQ/XoAqVxIL8ENiWbkwp/TO3Ks/3wM6Ay49xR8m+zbktdtptjrvkYdE2Yhm+emj4i3Q==
  • Delivered-to: eclipse-dev@xxxxxxxxxxx
  • List-archive: <>
  • List-help: <>
  • List-subscribe: <>, <>
  • List-unsubscribe: <>, <>
  • Thread-index: AQHY0lJaTt4B8bEz4kaIvd7mPOPXsg==
  • Thread-topic: GridLayout with >2 columns and imaginary center line



is there any change to use a Gridlayout with an even number columns and two even parts.



Label1: Text1____      Label2: Text2_____

Label 3: Text3______________________


I would like to place them in a GridLayout with four columns but “equalWidth” = false (because Label should take less space than Text; Texts should hGrab = true).

But Label1 and Text1 should take exactly half of the horizontal space, the other half is taken by Label2 and Text2.

One could say there is an imaginary center line.


Putting two Composites next to each other in an 2 column grid is not possible because of  Text3 (hSpan = 3).


Any setting in GridLayout that would help me? Or is there another GridLayout class that can do that?

Overwriting/Rewriting layout method in an own GridLayout implementation seems to be tough.


Thanks, Marcus

Back to the top