Skip to main content



      Home
Home » Eclipse Projects » GEF » clickable areas on borders
clickable areas on borders [message #90905] Thu, 21 August 2003 17:41 Go to next message
Eclipse UserFriend
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 #90938 is a reply to message #90905] Thu, 21 August 2003 23:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

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?
>
>
Re: clickable areas on borders [message #90982 is a reply to message #90938] Fri, 22 August 2003 08:59 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Problem about connection anchor location
Next Topic:Copy on drag
Goto Forum:
  


Current Time: Tue Jul 22 08:39:53 EDT 2025

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

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

Back to the top