• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Adding buttons to a Section Title (SWT)

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found an answer, It wasnt clear from the API

section.setTextClient(control)
reply
    Bookmark Topic Watch Topic
  • New Topic