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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top