|How do I find out the style of an SWT part? [message #526301]
||Fri, 09 April 2010 10:59
| John Ormerod
Registered: January 2010
I have a feeling that I will have one of those "duh!" moments when I see the answer.
I'm creating the UI from meta-data, so my code doesn't know one part from another. I want to find out if a Button is SWT.PUSH (rather than SWT.CHECK).
I assumed that getStyle() would work, but that returns a valuie of 50331656, whereas SWT.PUSH is 8. I don't OR this with any other style values, so I am at a bit of a loss as to why getStyle() doesn't return 8..
Likewise, I also need to distinguish a 'multi-line edit' Text box from a normal one. I have a feeling that getSyle() is not going to return me the result of SWT.BORDER | SWT.WRAP | SWT.MULTI.
Powered by FUDForum
. Page generated in 0.01799 seconds