autosizing DBText
good afternoon,
i use RB 10.07.
how can I, depending on the length of the field / variable text format so
that no truncation at the end of the DB-text is, but "..." appears?
Sample:
DBText = 'THIS IS MY TEXT'
Print = 'THIS IS MY TE' (depending on the length of the field)
my wish = 'THIS IS MY TE...' (Points or similar to the end, depending on the
length of the field)
sorry for my english.
Jens Rindt
i use RB 10.07.
how can I, depending on the length of the field / variable text format so
that no truncation at the end of the DB-text is, but "..." appears?
Sample:
DBText = 'THIS IS MY TEXT'
Print = 'THIS IS MY TE' (depending on the length of the field)
my wish = 'THIS IS MY TE...' (Points or similar to the end, depending on the
length of the field)
sorry for my english.
Jens Rindt
This discussion has been closed.
Comments
You will need to measure the text before it is printed. Since RAP does not
include the functionality to do this, you can easily create a "TextLength"
passthru function that takes a line of text and a font and returns the
length.
See the RAP demos for examples of creating passthru functions.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
help.
http://www.digital-metaphors.com/rbWiki/Design/Formatting/How_To...Format_Text_Overflow_with_Ellipse
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com