Link widget and several links [message #451683] |
Sat, 05 March 2005 05:33 |
Konstantin Scheglov Messages: 555 Registered: July 2009 |
Senior Member |
|
|
In Link widget I can create several <a> tags, but when I click on
them, I can not know in SelectionListener, which of them was selected. I
see that widgets sets 'text' field in Event, but later this text is not
used.
--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)
Konstantin Scheglov,
Google, Inc.
|
|
|
|
Re: Link widget and several links [message #451782 is a reply to message #451705] |
Wed, 09 March 2005 07:55 |
Konstantin Scheglov Messages: 555 Registered: July 2009 |
Senior Member |
|
|
Ivan Markov:
>>I see that widgets sets 'text' field in Event, but later this text is not
>>used.
>
>
> Not sure what you mean..
> This is certainly not used by SWT itself, it is a means for the SWT user to
> differentiate between several <a/> links using the Event.text field.
> It is supposed to hold the "href" of the selected link.
> Probably your problem is what happens when several links contain the same
> href text?
Oops, sorry, now I understand that I should just use untyped
SWT.Selection.
Thanks!
--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)
Konstantin Scheglov,
Google, Inc.
|
|
|
Powered by
FUDForum. Page generated in 0.02476 seconds