| 
| Header Control [message #56805] | Mon, 20 January 2003 18:41  |  | 
| Eclipse User  |  |  |  |  | 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 #59474 is a reply to message #59324] | Wed, 29 January 2003 11:30   |  | 
| Eclipse User  |  |  |  |  | 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.  =
 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.  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> </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" <<A=20
 =
 href=3D"mailto:ondrej.chylik@disnet-software.com">ondrej.chylik@disnet-so=
 ftware.com</A>>=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> </DIV>
 <DIV>    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> </DIV>
 <DIV>Regards,</DIV>
 <DIV>    Ondrej</DIV>
 <DIV> </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" <<A=20
 href=3D"mailto:none@us.ibm.com">none@us.ibm.com</A>> 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.  Perhaps you could make your own=20
 Viewport<BR>class laysout "rulers" along the edges.  Those =
 rulers could=20
 be viewports<BR>themselves that track one of the main viewports=20
 BoundedRangeModels.<BR><BR>"Eric Bordeau" <<A=20
 href=3D"mailto:ebordeau@us.ibm.com">ebordeau@us.ibm.com</A>> =
 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>>=20
 GEF/Draw2d doesn't have anything like this available right =
 now.  But=20
 it<BR>sounds like a customized<BR>> border would take care of =
 it. =20
 Borders aren't part of the client area and<BR>therefore don't =
 get<BR>>=20
 scrolled.  You could make a border that displays your column=20
 headers.<BR>><BR>> Eric<BR>><BR>><BR>> Tauseef A. =
 Israr=20
 wrote:<BR>> > Is there a way I can add header controls like =
 the one in=20
 class Table in<BR>> > Graphical Viewer.  I have figures =
 which are=20
 drawn in a pseudo-column(s)<BR>on<BR>> > the canvas and would =
 like to=20
 have a header control to them such that the<BR>> > header is =
 visible=20
 when I scroll down vertically.<BR>> ><BR>> > thanks for =
 the=20
 help<BR>> ><BR>> > TAI<BR>> ><BR>>=20
 ><BR>><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 15:07  |  | 
| Eclipse User  |  |  |  |  | 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> </DIV>
 <DIV>So it's likely that some problems may occur when trying to apply =
 the same=20
 approach...</DIV>
 <DIV> </DIV>
 <DIV>Ondrej</DIV></DIV>
 <DIV> </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" <<A=20
 href=3D"mailto:none@us.ibm.com">none@us.ibm.com</A>> 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.  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.  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> </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" <<A=20
 =
 href=3D"mailto:ondrej.chylik@disnet-software.com">ondrej.chylik@disnet-so=
 ftware.com</A>>=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> </DIV>
 <DIV>    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> </DIV>
 <DIV>Regards,</DIV>
 <DIV>    Ondrej</DIV>
 <DIV> </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" <<A=20
 href=3D"mailto:none@us.ibm.com">none@us.ibm.com</A>> 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.  Perhaps you could make your own =
 
 Viewport<BR>class laysout "rulers" along the edges.  Those =
 rulers=20
 could be viewports<BR>themselves that track one of the main =
 viewports=20
 BoundedRangeModels.<BR><BR>"Eric Bordeau" <<A=20
 href=3D"mailto:ebordeau@us.ibm.com">ebordeau@us.ibm.com</A>> =
 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>>=20
 GEF/Draw2d doesn't have anything like this available right =
 now.  But=20
 it<BR>sounds like a customized<BR>> border would take care of =
 it. =20
 Borders aren't part of the client area and<BR>therefore don't =
 get<BR>>=20
 scrolled.  You could make a border that displays your column=20
 headers.<BR>><BR>> Eric<BR>><BR>><BR>> Tauseef A. =
 Israr=20
 wrote:<BR>> > Is there a way I can add header controls like =
 the one=20
 in class Table in<BR>> > Graphical Viewer.  I have =
 figures=20
 which are drawn in a pseudo-column(s)<BR>on<BR>> > the =
 canvas and=20
 would like to have a header control to them such that the<BR>> =
 >=20
 header is visible when I scroll down vertically.<BR>> =
 ><BR>> >=20
 thanks for the help<BR>> ><BR>> > TAI<BR>> =
 ><BR>>=20
 =
 ><BR>><BR><BR></BLOCKQUOTE></BLOCKQUOTE> </BLOCKQUOTE></BODY></HTML>=
 
 
 ------=_NextPart_000_0528_01C2C7DA.7301F020--
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.04285 seconds