clickable areas on borders [message #90905] |
Thu, 21 August 2003 17:41  |
Eclipse User |
|
|
|
If I design my own AbstractBorder, and I make an area of it look like
a button, what do I do to make sure that the parent figure will get
hit when mouse button events occur?
|
|
|
|
Re: clickable areas on borders [message #90982 is a reply to message #90938] |
Fri, 22 August 2003 08:59  |
Eclipse User |
|
|
|
On Thu, 21 Aug 2003 23:12:34 -0400, "Randy Hudson" <none@us.ibm.com>
wrote:
>This is a pretty complex thing to do. For an example of this, see
>PaletteDrawerEditPart. If I understand you correctly, you want the same
>functionality that the palette has?
>
>"Ray Tsui" <Raymond_Tsui@ca.ibm.com> wrote in message
>news:20fakv8jmti41l6s445ld1ek9cdm47usuu@4ax.com...
>> If I design my own AbstractBorder, and I make an area of it look like
>> a button, what do I do to make sure that the parent figure will get
>> hit when mouse button events occur?
>>
On the borders of our editparts, we have a "collapse/expand" button.
Since the border is painted by us, we need to make sure that the
parent figure gets hit when the mouse event occurs, so that we know to
do the expand/collapse action.
|
|
|
Powered by
FUDForum. Page generated in 0.72369 seconds