HowTo subclass/extend/customize Item to have multiple active Widgets? [message #465978] |
Tue, 27 December 2005 23:57 |
Paul E. Keyser Messages: 878 Registered: July 2009 |
Senior Member |
|
|
R3.1.1 (WinXP)
It looks like it is theoretically possible to subclass Item as FooItem and write a corresponding
FooControl so that each FooItem would (A) have multiple active Widgets, say, (1) an Image-bearing
CLabel, (2) a separate text-bearing CLabel, and (3) an separate editable Text, and (B) allow the
user to manipulate (click on, select, etc.) each of those widgets *independently*.
However, after reading prior threads on the subject ("Subclassing Item, allowed?", "Customizing
TreeItem", and "Extending Item?"), I am not altogether sure that this is really possible. (The
article referred to in one of those threads just shows how to write a TreeViewer using the existing
JFace TreeViewer code, and the result just has the regular Image-plus-text type of TreeItem.) Adding
things to the data-field of the Widget/Item is not sufficient, since I need the GUI to have extra
active Controls for each FooItem. I would hope that what I want to do would not involve OS-level
code the way all existing SWT-provided subclasses of Item do.
So -- does anyone know how to go about doing this? Is it even possible?
thanks (in advance)
Paul
|
|
|
Powered by
FUDForum. Page generated in 0.03294 seconds