R Sumesh Manjunath
R Sumesh Manjunath

Reputation: 75

Cross image on SWT.CHECK

I want to display to user that a check box cannot be selected. I have made it greyed, but I wanted to show a cross (X) in the check box instead of default tick) on selecting.

Is there a way to show cross mark in the check box when it is selected.

Upvotes: 1

Views: 128

Answers (1)

Baz
Baz

Reputation: 36904

SWT Widgets are OS dependent, meaning that the OS determines what they look like.

Consequently, there is no way of making a Button show a "X" without considerable coding on your side.

Your best option would be to create a completely new Widget based on Composite or Canvas and do the painting completely yourself.

Upvotes: 3

Related Questions