Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to get an image in a Section
How to get an image in a Section [message #439769] Wed, 16 November 2005 17:34 Go to next message
Eclipse UserFriend
Originally posted by: kwpeck.mersoft.com

In some of the Eclipse Editor pages you see a (?) image on the right
edge of a Section. Do I need to override onPaint to pull that off? I did
not see anything in Section specifically to add an image. I don't want
the help image there but I want to add a "Clear All" image as the
Section is used over a list box.

If I do override onPaint then how do I go about adding a listener so I
can get a button style action from the image?

Maybe there is a better way to go about all of this.
Re: How to get an image in a Section [message #440630 is a reply to message #439769] Mon, 05 December 2005 11:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kwpeck.mersoft.com

Kevin Peck wrote:
> In some of the Eclipse Editor pages you see a (?) image on the right
> edge of a Section. Do I need to override onPaint to pull that off? I did
> not see anything in Section specifically to add an image. I don't want
> the help image there but I want to add a "Clear All" image as the
> Section is used over a list box.
>
> If I do override onPaint then how do I go about adding a listener so I
> can get a button style action from the image?
>
> Maybe there is a better way to go about all of this.

I figured out how do to is by using the setTextClient call of the Section.
Re: How to get an image in a Section [message #449403 is a reply to message #440630] Fri, 12 May 2006 01:11 Go to previous message
Eclipse UserFriend
could u provide the part of code adding help icon to the section. I tried by setting the control(button) to the section but i didn't find any change in the UI.

Thanks in Advance
Previous Topic:RCP with a database and not with IResources ??
Next Topic:how to implement Cut, copy and paste actions
Goto Forum:
  


Current Time: Sun Aug 31 03:56:02 EDT 2025

Powered by FUDForum. Page generated in 0.05255 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top