• Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding buttons to a Section Title (SWT)

 
Diarmuid Mc Donald
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I was wanting to know how to add buttons/actions to a org.eclipse.ui.forms.widgets.Section. I am using eclipse 3.3

Any help would be greatly appreciated.
 
bart zagers
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you familiar with the FormToolkit class, which has a createButton method.

Have you read this interesting article about using Forms?
 
Diarmuid Mc Donald
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know how to create buttons. I just want to add buttons to the section title.

In the article link you gave, in the "Form text control" part, There is a question mark button in the section title. This is what I would like to know how to do.
 
bart zagers
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry,
I didn't read your problem carefully enough.
I don't have an idea how they accomplish that.
 
Diarmuid Mc Donald
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cheers Bart,

I re-read my orignal post, and i wasnt clear. thanks for helping anyway.

If anyone else has a solution, it would be greatly appreciated. I think it was added to eclipse 3.2 or 3.3
 
Diarmuid Mc Donald
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found an answer, It wasnt clear from the API

section.setTextClient(control)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!