質問

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