[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Icon in the title of Section or ExpandableComposite
|
you should ask this on the eclipse.platform newsgroup because ui forms is
implemented above the swt level
"Kevin" <k@xxxxxxxxxxxxxxxxxxx> wrote in message
news:fguf0k$5n2$1@xxxxxxxxxxxxxxxxxxxx
> Hello,
>
> I need a simple thing, to add an icon to the title of a
> ExpandableComposite or Section. How can I do it, why isn't it already
> solved?. It would be an image to the left of the title text like in
> ExpandItem.
>
> The ExpandableComposite textLabel could be a Label or HyperLink, if it
> is a Label I can do textlabel.setImage() if I subclass
> ExpandableComposite but it will show only the label and no text! :(.
> If the title is hyperlink can I set an image there?
>
> If I do that (label.setImage) then I need to put the title text in the
> textClient control, is there a better solution ?
>
> Can I subclass Section? how can I keep the form look and feel if I
> subclass ?
>
> I think I need to subclass because I want to add some controls to the
> title of the composite (a button at least). I tried to use ExpandItem
> but I cant subclass ExpandItem because it is native in linux :(
>
>
>
> Thank you very much.