Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Getting buttons in a Table row

If you want check boxes in the first column, you can create the Table with 
the style SWT.CHECK.

Alternatively, you could use TableEditor in the cell and use a button with 
style SWT.CHECK.

See:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/snippits/snippet88.html

The snippet above uses a text wdiget but you could use a button.




Per Ejeklint <ejeklint@xxxxxxx> 
Sent by: platform-swt-dev-admin@xxxxxxxxxxx
01/07/2004 11:59 AM
Please respond to
platform-swt-dev


To
platform-swt-dev@xxxxxxxxxxx
cc

Subject
[platform-swt-dev] Getting buttons in a Table row






I'm writing an Eclipse plugin that lists a number of entries in a 
table. Each entry should consist of a check-style Button, two radio 
buttons and some strings.

I have a prototype plugin running, using TableViewer, LabelProvider and 
that stuff, but I can't figure out how to get the buttons in place. 
Currently I have a CheckBoxEditor in place of them, but with no 
adequate images. Seems that buttons should be the best way to go, but 
where do you put them and how do you handle state changes on them? Any 
hints to sample code?

/Per Ejeklint

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev




Back to the top