Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Header Control
Header Control [message #56805] Mon, 20 January 2003 23:41 Go to next message
Eclipse UserFriend
Originally posted by: tauseef.israr.rational.com

Is there a way I can add header controls like the one in class Table in
Graphical Viewer. I have figures which are drawn in a pseudo-column(s) on
the canvas and would like to have a header control to them such that the
header is visible when I scroll down vertically.

thanks for the help

TAI
Re: Header Control [message #56911 is a reply to message #56805] Tue, 21 January 2003 16:24 Go to previous messageGo to next message
Eric Bordeau is currently offline Eric BordeauFriend
Messages: 259
Registered: July 2009
Senior Member
GEF/Draw2d doesn't have anything like this available right now. But it sounds like a customized
border would take care of it. Borders aren't part of the client area and therefore don't get
scrolled. You could make a border that displays your column headers.

Eric


Tauseef A. Israr wrote:
> Is there a way I can add header controls like the one in class Table in
> Graphical Viewer. I have figures which are drawn in a pseudo-column(s) on
> the canvas and would like to have a header control to them such that the
> header is visible when I scroll down vertically.
>
> thanks for the help
>
> TAI
>
>
Re: Header Control [message #59096 is a reply to message #56911] Tue, 28 January 2003 23:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

This sounds like a "ruler" to me. Perhaps you could make your own Viewport
class laysout "rulers" along the edges. Those rulers could be viewports
themselves that track one of the main viewports BoundedRangeModels.

"Eric Bordeau" <ebordeau@us.ibm.com> wrote in message
news:b0jr4p$n6b$2@rogue.oti.com...
> GEF/Draw2d doesn't have anything like this available right now. But it
sounds like a customized
> border would take care of it. Borders aren't part of the client area and
therefore don't get
> scrolled. You could make a border that displays your column headers.
>
> Eric
>
>
> Tauseef A. Israr wrote:
> > Is there a way I can add header controls like the one in class Table in
> > Graphical Viewer. I have figures which are drawn in a pseudo-column(s)
on
> > the canvas and would like to have a header control to them such that the
> > header is visible when I scroll down vertically.
> >
> > thanks for the help
> >
> > TAI
> >
> >
>
Re: Header Control [message #59324 is a reply to message #59096] Wed, 29 January 2003 14:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ondrej.chylik.disnet-software.com

This is a multi-part message in MIME format.

------=_NextPart_000_02A1_01C2C7AD.113DD610
Content-Type: text/plain;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

Hi,

you may want to take a look at thread "Ruler on an EditPartViewer" =
(started 2002-05-23) in this newsgroup. It briefly explains what I tried =
to do to attain similar functionality. BTW I sticked to the solution and =
am using it till today, but I don't consider it contributable -- just a =
guideline (hopefully).

Regards,
Ondrej

"Randy Hudson" <none@us.ibm.com> p=ED=B9e v diskusn=EDm =
p=F8=EDsp=ECvku news:b171tc$mvv$1@rogue.oti.com...
This sounds like a "ruler" to me. Perhaps you could make your own =
Viewport
class laysout "rulers" along the edges. Those rulers could be =
viewports
themselves that track one of the main viewports BoundedRangeModels.

"Eric Bordeau" <ebordeau@us.ibm.com> wrote in message
news:b0jr4p$n6b$2@rogue.oti.com...
> GEF/Draw2d doesn't have anything like this available right now. But =
it
sounds like a customized
> border would take care of it. Borders aren't part of the client =
area and
therefore don't get
> scrolled. You could make a border that displays your column =
headers.
>
> Eric
>
>
> Tauseef A. Israr wrote:
> > Is there a way I can add header controls like the one in class =
Table in
> > Graphical Viewer. I have figures which are drawn in a =
pseudo-column(s)
on
> > the canvas and would like to have a header control to them such =
that the
> > header is visible when I scroll down vertically.
> >
> > thanks for the help
> >
> > TAI
> >
> >
>



------=_NextPart_000_02A1_01C2C7AD.113DD610
Content-Type: text/html;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-2" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3502.5390" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>Hi,</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; you may want to take a look at thread "Ruler on =
an=20
EditPartViewer" (started 2002-05-23) in this newsgroup. It briefly =
explains what=20
I tried to do to attain similar functionality. BTW I sticked to the =
solution and=20
am using it till today, but I don't consider it contributable -- just a=20
guideline (hopefully).</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV>&nbsp;&nbsp;&nbsp; Ondrej</DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV>"Randy Hudson" &lt;<A=20
href=3D"mailto:none@us.ibm.com">none@us.ibm.com</A>&gt; p=ED=B9e v =
diskusn=EDm=20
p=F8=EDsp=ECvku <A=20
=
href=3D"news:b171tc$mvv$1@rogue.oti.com">news:b171tc$mvv$1@rogue.oti.com<=
/A>...</DIV>This=20
sounds like a "ruler" to me.&nbsp; Perhaps you could make your own=20
Viewport<BR>class laysout "rulers" along the edges.&nbsp; Those rulers =
could=20
be viewports<BR>themselves that track one of the main viewports=20
BoundedRangeModels.<BR><BR>"Eric Bordeau" &lt;<A=20
href=3D"mailto:ebordeau@us.ibm.com">ebordeau@us.ibm.com</A>&gt; wrote =
in=20
message<BR><A=20
=
href=3D"news:b0jr4p$n6b$2@rogue.oti.com">news:b0jr4p$n6b$2@rogue.oti.com<=
/A>...<BR>&gt;=20
GEF/Draw2d doesn't have anything like this available right now.&nbsp; =
But=20
it<BR>sounds like a customized<BR>&gt; border would take care of =
it.&nbsp;=20
Borders aren't part of the client area and<BR>therefore don't =
get<BR>&gt;=20
scrolled.&nbsp; You could make a border that displays your column=20
headers.<BR>&gt;<BR>&gt; Eric<BR>&gt;<BR>&gt;<BR>&gt; Tauseef A. Israr =

wrote:<BR>&gt; &gt; Is there a way I can add header controls like the =
one in=20
class Table in<BR>&gt; &gt; Graphical Viewer.&nbsp; I have figures =
which are=20
drawn in a pseudo-column(s)<BR>on<BR>&gt; &gt; the canvas and would =
like to=20
have a header control to them such that the<BR>&gt; &gt; header is =
visible=20
when I scroll down vertically.<BR>&gt; &gt;<BR>&gt; &gt; thanks for =
the=20
help<BR>&gt; &gt;<BR>&gt; &gt; TAI<BR>&gt; &gt;<BR>&gt;=20
&gt;<BR>&gt;<BR><BR></BLOCKQUOTE></BODY></HTML >

------=_NextPart_000_02A1_01C2C7AD.113DD610--
Re: Header Control [message #59474 is a reply to message #59324] Wed, 29 January 2003 16:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

This is a multi-part message in MIME format.

------=_NextPart_000_03C2_01C2C789.D4D96860
Content-Type: text/plain;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

Yes, I remember that discussion. Now that we have a class called =
FigureCanvas, which uses native SWT Scrollbars, there is no need for a =
ScrollPane figure at the top-most level, just a Viewport figure. So, =
there is no ScrollPaneLayout to position the rulers, which is why I =
changed my mind and would now suggest having a Viewport host the rulers.

"Ondrej Chylik" <ondrej.chylik@disnet-software.com> wrote in message =
news:b18o01$rbs$1@rogue.oti.com...
Hi,

you may want to take a look at thread "Ruler on an EditPartViewer" =
(started 2002-05-23) in this newsgroup. It briefly explains what I tried =
to do to attain similar functionality. BTW I sticked to the solution and =
am using it till today, but I don't consider it contributable -- just a =
guideline (hopefully).

Regards,
Ondrej

"Randy Hudson" <none@us.ibm.com> p=ED=B9e v diskusn=EDm =
p=F8=EDsp=ECvku news:b171tc$mvv$1@rogue.oti.com...
This sounds like a "ruler" to me. Perhaps you could make your own =
Viewport
class laysout "rulers" along the edges. Those rulers could be =
viewports
themselves that track one of the main viewports BoundedRangeModels.

"Eric Bordeau" <ebordeau@us.ibm.com> wrote in message
news:b0jr4p$n6b$2@rogue.oti.com...
> GEF/Draw2d doesn't have anything like this available right now. =
But it
sounds like a customized
> border would take care of it. Borders aren't part of the client =
area and
therefore don't get
> scrolled. You could make a border that displays your column =
headers.
>
> Eric
>
>
> Tauseef A. Israr wrote:
> > Is there a way I can add header controls like the one in class =
Table in
> > Graphical Viewer. I have figures which are drawn in a =
pseudo-column(s)
on
> > the canvas and would like to have a header control to them such =
that the
> > header is visible when I scroll down vertically.
> >
> > thanks for the help
> >
> > TAI
> >
> >
>



------=_NextPart_000_03C2_01C2C789.D4D96860
Content-Type: text/html;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-2">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Yes, I remember that discussion.&nbsp; =
Now that we=20
have a class called FigureCanvas, which uses native SWT Scrollbars, =
there is no=20
need for a ScrollPane figure at the top-most level, just a Viewport=20
figure.&nbsp; So, there is no ScrollPaneLayout to position the rulers, =
which is=20
why I changed my mind and would now suggest having a Viewport host the=20
rulers.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ondrej Chylik" &lt;<A=20
=
href=3D"mailto:ondrej.chylik@disnet-software.com">ondrej.chylik@disnet-so=
ftware.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:b18o01$rbs$1@rogue.oti.com">news:b18o01$rbs$1@rogue.oti.com<=
/A>...</DIV>
<DIV>Hi,</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; you may want to take a look at thread "Ruler =
on an=20
EditPartViewer" (started 2002-05-23) in this newsgroup. It briefly =
explains=20
what I tried to do to attain similar functionality. BTW I sticked to =
the=20
solution and am using it till today, but I don't consider it =
contributable --=20
just a guideline (hopefully).</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV>&nbsp;&nbsp;&nbsp; Ondrej</DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Randy Hudson" &lt;<A=20
href=3D"mailto:none@us.ibm.com">none@us.ibm.com</A>&gt; p=ED=B9e v =
diskusn=EDm=20
p=F8=EDsp=ECvku <A=20
=
href=3D"news:b171tc$mvv$1@rogue.oti.com">news:b171tc$mvv$1@rogue.oti.com<=
/A>...</DIV>This=20
sounds like a "ruler" to me.&nbsp; Perhaps you could make your own=20
Viewport<BR>class laysout "rulers" along the edges.&nbsp; Those =
rulers could=20
be viewports<BR>themselves that track one of the main viewports=20
BoundedRangeModels.<BR><BR>"Eric Bordeau" &lt;<A=20
href=3D"mailto:ebordeau@us.ibm.com">ebordeau@us.ibm.com</A>&gt; =
wrote in=20
message<BR><A=20
=
href=3D"news:b0jr4p$n6b$2@rogue.oti.com">news:b0jr4p$n6b$2@rogue.oti.com<=
/A>...<BR>&gt;=20
GEF/Draw2d doesn't have anything like this available right =
now.&nbsp; But=20
it<BR>sounds like a customized<BR>&gt; border would take care of =
it.&nbsp;=20
Borders aren't part of the client area and<BR>therefore don't =
get<BR>&gt;=20
scrolled.&nbsp; You could make a border that displays your column=20
headers.<BR>&gt;<BR>&gt; Eric<BR>&gt;<BR>&gt;<BR>&gt; Tauseef A. =
Israr=20
wrote:<BR>&gt; &gt; Is there a way I can add header controls like =
the one in=20
class Table in<BR>&gt; &gt; Graphical Viewer.&nbsp; I have figures =
which are=20
drawn in a pseudo-column(s)<BR>on<BR>&gt; &gt; the canvas and would =
like to=20
have a header control to them such that the<BR>&gt; &gt; header is =
visible=20
when I scroll down vertically.<BR>&gt; &gt;<BR>&gt; &gt; thanks for =
the=20
help<BR>&gt; &gt;<BR>&gt; &gt; TAI<BR>&gt; &gt;<BR>&gt;=20
&gt;<BR>&gt;<BR><BR></BLOCKQUOTE></BLOCKQUOTE> </BODY></HTML>

------=_NextPart_000_03C2_01C2C789.D4D96860--
Re: Header Control [message #59880 is a reply to message #59474] Wed, 29 January 2003 20:07 Go to previous message
Eclipse UserFriend
Originally posted by: ondrej.chylik.disnet-software.com

This is a multi-part message in MIME format.

------=_NextPart_000_0528_01C2C7DA.7301F020
Content-Type: text/plain;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

When I said that I still live with the solution, I should have also =
mentioned that I didn't upgrade the GEF version since then -- I'm still =
using the com.ibm.etools.gef_2.0.1 release...

So it's likely that some problems may occur when trying to apply the =
same approach...

Ondrej

"Randy Hudson" <none@us.ibm.com> p=ED=B9e v diskusn=EDm =
p=F8=EDsp=ECvku news:b18uj1$20o$1@rogue.oti.com...
Yes, I remember that discussion. Now that we have a class called =
FigureCanvas, which uses native SWT Scrollbars, there is no need for a =
ScrollPane figure at the top-most level, just a Viewport figure. So, =
there is no ScrollPaneLayout to position the rulers, which is why I =
changed my mind and would now suggest having a Viewport host the rulers.
=20
"Ondrej Chylik" <ondrej.chylik@disnet-software.com> wrote in message =
news:b18o01$rbs$1@rogue.oti.com...
Hi,

you may want to take a look at thread "Ruler on an =
EditPartViewer" (started 2002-05-23) in this newsgroup. It briefly =
explains what I tried to do to attain similar functionality. BTW I =
sticked to the solution and am using it till today, but I don't consider =
it contributable -- just a guideline (hopefully).

Regards,
Ondrej

"Randy Hudson" <none@us.ibm.com> p=ED=B9e v diskusn=EDm =
p=F8=EDsp=ECvku news:b171tc$mvv$1@rogue.oti.com...
This sounds like a "ruler" to me. Perhaps you could make your own =
Viewport
class laysout "rulers" along the edges. Those rulers could be =
viewports
themselves that track one of the main viewports =
BoundedRangeModels.

"Eric Bordeau" <ebordeau@us.ibm.com> wrote in message
news:b0jr4p$n6b$2@rogue.oti.com...
> GEF/Draw2d doesn't have anything like this available right now. =
But it
sounds like a customized
> border would take care of it. Borders aren't part of the client =
area and
therefore don't get
> scrolled. You could make a border that displays your column =
headers.
>
> Eric
>
>
> Tauseef A. Israr wrote:
> > Is there a way I can add header controls like the one in class =
Table in
> > Graphical Viewer. I have figures which are drawn in a =
pseudo-column(s)
on
> > the canvas and would like to have a header control to them =
such that the
> > header is visible when I scroll down vertically.
> >
> > thanks for the help
> >
> > TAI
> >
> >
>



------=_NextPart_000_0528_01C2C7DA.7301F020
Content-Type: text/html;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-2" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3502.5390" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<DIV>
<DIV>When I said that I still live with the solution, I should have also =

mentioned that I didn't upgrade the GEF version since then -- I'm still =
using=20
the com.ibm.etools.gef_2.0.1 release...</DIV>
<DIV>&nbsp;</DIV>
<DIV>So it's likely that some problems may occur when trying to apply =
the same=20
approach...</DIV>
<DIV>&nbsp;</DIV>
<DIV>Ondrej</DIV></DIV>
<DIV>&nbsp;</DIV></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV>"Randy Hudson" &lt;<A=20
href=3D"mailto:none@us.ibm.com">none@us.ibm.com</A>&gt; p=ED=B9e v =
diskusn=EDm=20
p=F8=EDsp=ECvku <A=20
=
href=3D"news:b18uj1$20o$1@rogue.oti.com">news:b18uj1$20o$1@rogue.oti.com<=
/A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Yes, I remember that =
discussion.&nbsp; Now that=20
we have a class called FigureCanvas, which uses native SWT Scrollbars, =
there=20
is no need for a ScrollPane figure at the top-most level, just a =
Viewport=20
figure.&nbsp; So, there is no ScrollPaneLayout to position the rulers, =
which=20
is why I changed my mind and would now suggest having a Viewport host =
the=20
rulers.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; =
MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV>"Ondrej Chylik" &lt;<A=20
=
href=3D"mailto:ondrej.chylik@disnet-software.com">ondrej.chylik@disnet-so=
ftware.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:b18o01$rbs$1@rogue.oti.com">news:b18o01$rbs$1@rogue.oti.com<=
/A>...</DIV>
<DIV>Hi,</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; you may want to take a look at thread "Ruler =
on an=20
EditPartViewer" (started 2002-05-23) in this newsgroup. It briefly =
explains=20
what I tried to do to attain similar functionality. BTW I sticked to =
the=20
solution and am using it till today, but I don't consider it =
contributable=20
-- just a guideline (hopefully).</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV>&nbsp;&nbsp;&nbsp; Ondrej</DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; =
MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV>"Randy Hudson" &lt;<A=20
href=3D"mailto:none@us.ibm.com">none@us.ibm.com</A>&gt; p=ED=B9e v =
diskusn=EDm=20
p=F8=EDsp=ECvku <A=20
=
href=3D"news:b171tc$mvv$1@rogue.oti.com">news:b171tc$mvv$1@rogue.oti.com<=
/A>...</DIV>This=20
sounds like a "ruler" to me.&nbsp; Perhaps you could make your own =

Viewport<BR>class laysout "rulers" along the edges.&nbsp; Those =
rulers=20
could be viewports<BR>themselves that track one of the main =
viewports=20
BoundedRangeModels.<BR><BR>"Eric Bordeau" &lt;<A=20
href=3D"mailto:ebordeau@us.ibm.com">ebordeau@us.ibm.com</A>&gt; =
wrote in=20
message<BR><A=20
=
href=3D"news:b0jr4p$n6b$2@rogue.oti.com">news:b0jr4p$n6b$2@rogue.oti.com<=
/A>...<BR>&gt;=20
GEF/Draw2d doesn't have anything like this available right =
now.&nbsp; But=20
it<BR>sounds like a customized<BR>&gt; border would take care of =
it.&nbsp;=20
Borders aren't part of the client area and<BR>therefore don't =
get<BR>&gt;=20
scrolled.&nbsp; You could make a border that displays your column=20
headers.<BR>&gt;<BR>&gt; Eric<BR>&gt;<BR>&gt;<BR>&gt; Tauseef A. =
Israr=20
wrote:<BR>&gt; &gt; Is there a way I can add header controls like =
the one=20
in class Table in<BR>&gt; &gt; Graphical Viewer.&nbsp; I have =
figures=20
which are drawn in a pseudo-column(s)<BR>on<BR>&gt; &gt; the =
canvas and=20
would like to have a header control to them such that the<BR>&gt; =
&gt;=20
header is visible when I scroll down vertically.<BR>&gt; =
&gt;<BR>&gt; &gt;=20
thanks for the help<BR>&gt; &gt;<BR>&gt; &gt; TAI<BR>&gt; =
&gt;<BR>&gt;=20
=
&gt;<BR>&gt;<BR><BR></BLOCKQUOTE></BLOCKQUOTE> </BLOCKQUOTE></BODY></HTML>=


------=_NextPart_000_0528_01C2C7DA.7301F020--
Previous Topic:Connections between nodes which are contained in containers
Next Topic:Please help!
Goto Forum:
  


Current Time: Wed Jul 17 15:01:04 GMT 2024

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

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

Back to the top