Question

Having a ToolItem with a 32x32 image and a text caption, the image is displayed far too small. Is it possible to set the height of a SWT ToolItem programatically?

I am not asking for a solution using CoolItem.

Increasing the size of the parent ToolBar and (parent of parent) Composite did not help. The ToolBar becomes heigher, but the ToolItem height seems fixed.

Was it helpful?

Solution

Solution:

It is not possible to resize ToolItems manually. All images in a ToolBar are scaled automatically to match the size of the FIRST image added to the ToolBar. In my case the first ToolItem had a very small image and was disposed early on, that is why subsequent ToolItems were smaller than expected.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top