Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

rotating text in dynamically created datawindow

146 views
Skip to first unread message

Steve Hansen

unread,
Oct 26, 1998, 3:00:00 AM10/26/98
to
I have been reading up on the messages here regarding rotating text, but
I am still having a problem getting it to work when the field is on a
dynamically created data window. It is not a static text field, it is a
column. I have used:

dw_component.modify(ls_name_string + '.alignment="0"')
dw_component.modify(ls_name_string + '.font.escapement="900"')

where ls_name_string is the name of the column. All this seems to do is
move my text downward and to the right. But it is still horizontal!
Any one out there have any thoughts on this?

Thanks for your help,
Steve Hansen


Somnath Ukil

unread,
Oct 27, 1998, 3:00:00 AM10/27/98
to
I dont know whether the following will work or not. U can try that and let
me know.

First SetRedraw(False) and after doing all your dw code set it again to
True. It may work.

Best of luck,

Somnath Ukil
su...@quint-software.com

Steve Hansen wrote in message <3634E00B...@hotmail.com>...

Steve Hansen

unread,
Oct 27, 1998, 3:00:00 AM10/27/98
to
The thought was good... unfortunately, it doesn't work... Any other
ideas?

Thanks anyway,
Steve Hansen

Karl Moskowski

unread,
Oct 27, 1998, 3:00:00 AM10/27/98
to
I tried this a while ago, and (if I remember correctly) the objects you're
rotating have to be left-justified and using a TrueType font. Maybe no
border will help too.

Steve Hansen <steve_...@hotmail.com> wrote in article
<363601A2...@hotmail.com>...

Steve Hansen

unread,
Oct 28, 1998, 3:00:00 AM10/28/98
to
Ok, here we go. It does not seem to matter what the border is set to.
It does not seem to matter how the justification is set. Redraw also
does not seem to matter, although it definitely make more sense to shut
if off while you're changing the settings. The only things that seem to
be absolutely necessary are:

dw_component.modify(ls_name_string + '.font.face="Arial"')


dw_component.modify(ls_name_string + '.font.escapement="900"')

Now for the next problem, as the text rotates, it rotates entirely out
of the visible area on the datawindow. Any ideas on that? Alignment
does not affect where the text actualy ends up being positioned. I do
not care if the text is rotated negative or positive. Incidentally, if
you rotate it with a positive escapement, it appears to rotate around
its upper left corner, and if you rotate it with a negative escapement,
it appears to rotate around its lower left corner. Either way it
rotates out of the datawindow.

Also the field is not exactly editable. At least, it's not visible
while you edit it.

Steve Hansen

Karl Moskowski

unread,
Oct 28, 1998, 3:00:00 AM10/28/98
to
Is the object's height big enough? Rotating the text doesn't actually
rotate the object; it rotates the text within the object. So, if the object
is horizontally rectangular (i.e., one character high, and quite wide) then
rotating the text would probably make it disappear. Try creating the object
tall enough to hold all the text.

If that doesn't work, check the height of the object's band?

Steve Hansen <steve_...@hotmail.com> wrote in article

<36372450...@hotmail.com>...

Steve Hansen

unread,
Oct 28, 1998, 3:00:00 AM10/28/98
to
Actually I've set several different parameters, including the height and
the width:

dw_component.modify(ls_name_string + '.height="445"')
dw_component.modify(ls_name_string + '.width="50"')
dw_component.modify(ls_name_string + '.border="6"')
dw_component.modify(ls_name_string + '.alignment="2"')


dw_component.modify(ls_name_string + '.font.face="Arial"')
dw_component.modify(ls_name_string + '.font.escapement="900"')

The object is big enough to display about 1-2 characters wide by about
15-20 long rotated 90 degrees. However, if you rotate it 90 degrees,
the text completely disappears. To figure out what was happening, I
rotated the text at several increments between -90 degrees and 90
degrees, it actually fall out of the object and disappears. (For lack of
a better way of describing it.)

0 new messages