Reputation: 23
How to change Widget
style in SWT
, of existing widget, Means i am working on ProgressBar
and i want to change it's style SWT.VERTICAL
from SWT.HORIZONTAL
Upvotes: 2
Views: 1026
Reputation: 111217
You can't, styles are fixed once the control has been created.
In some cases SWT may use a completely different native control to implement the SWT control depending on the style flags. For example on macOS a Combo
with the SWT.READ_ONLY
style uses a different macOS control to a read/write Combo
. This would make allowing you to change the style very complex.
Upvotes: 4