XForms: Browser tabs problems and wibnis -Reply

Russel Lane (RLANE@tuc.com)
Thu, 12 Mar 1998 11:43:35 -0600

# To subscribers of the xforms list from "Russel Lane" <RLANE@tuc.com> :

You may be interested in the multi-column browser provided by the "xfl" =
library in the contributors section.

>>> Dick Middleton <dick@sqf.hp.com> 03/12/98 09:01am >>>
# To subscribers of the xforms list from Dick Middleton <dick@sqf.hp.com> =
:

I'm having difficulty putting tabulated columns of data into browsers. I
think there is more than one issue.

Firstly the position of the tabstop set with fl_set_tabstop("aaaaaaaa") =
seems
to be actually at "aaaaaaaaa", i.e. the length of 9 'a's rather than 8 =
'a's -
one a more than it should be. The same is true with shorter strings of =
'a's;
5 'a's produces a tabstop after 'a' #6 etc. I would expect the tabstop to =
be
positioned at the pixel position returned by fl_get_string_width of the
tabstop string. This does not seem to be the case.

Secondly the fl_get_string_width function treats a tab character as zero
length so the length of a string with embedded tabs is not as one might
expect.

Thirdly the fl_set_tabstop function cannot be used to set different =
tabstops
for different browsers in the same form because it does not take effect =
until
the callback returns. This also makes it difficult to reset the tabstops =
back
to the default value after setting it specifically for one browser. I =
think
the browser should copy the tabstops in force when it is referenced =
(perhaps
in fl_clear_browser) and not use the global value.

It would be nice if it were possible to set tabstops at varying column
positions so that the field widths (between tabstops) were not necessarily
equal. It would be especially nice if tabstops could be made selectable =
left
or right aligned. One could perhaps enhance fl_set_tabstop to handle =
strings
for example something like "aaaaaaa<aaaaaaaa>aa<aaaaa" where the '<' and =
'>'
characters represented left and right tabstop positions with the last tab
field being repeated.

I'm hoping somebody can suggest some workarounds; meanwhile it's back to
fixed width fonts.

xforms 0.88 - hp-ux 9.05

Dick

---------------------------------------------------------------------------=
----

Dick Middleton
Phone: +44 131-331 7530
Fax: +44 131-331 7443 ( )
email: dick@sqf.hp.com ( )
( )
( ) . ~ ~ ~ ~~ .
( ) _______
( ) |
. ~ ~ ~ ~~ . |
/O\
-------------------------------------( o )---------------------------------=
----
- I'd rather be =
soaring

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/