Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Line drawing in Panel Figure
Line drawing in Panel Figure [message #160143] Thu, 02 December 2004 17:41 Go to next message
Eclipse UserFriend
Originally posted by: jsk_lam.hotmail.com

Hi

I use a Panel as a composite figure to host an Image and a Label.
Now, I need to draw a rectangle box inside the pandel with a '+' or '-'
to indicate the expand and collapse states:

---- ----
| + | | - |
---- ----

The little rectangle box need to behave as a hot spot, so the user
can click on it and a notification message will be sent and received
by the program to take appropriate action.

Can someone please provide help on this?

Thanks,
slam
Re: Line drawing in Panel Figure [message #160964 is a reply to message #160143] Wed, 08 December 2004 06:07 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Use a toggle button. BTW, a label can have both text and an icon. So, you
might not need another ImageFigure.

"slam" <jsk_lam@hotmail.com> wrote in message
news:conk49$7s3$1@www.eclipse.org...
> Hi
>
> I use a Panel as a composite figure to host an Image and a Label.
> Now, I need to draw a rectangle box inside the pandel with a '+' or '-'
> to indicate the expand and collapse states:
>
> ---- ----
> | + | | - |
> ---- ----
>
> The little rectangle box need to behave as a hot spot, so the user
> can click on it and a notification message will be sent and received
> by the program to take appropriate action.
>
> Can someone please provide help on this?
>
> Thanks,
> slam
>
>
Previous Topic:Expand & Collapse effect
Next Topic:How to use a tree viewer as a palette ?
Goto Forum:
  


Current Time: Thu Apr 25 23:55:48 GMT 2024

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

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

Back to the top