Request for feedback
BNig
bernd.niggemann at uni-wh.de
Mon Dec 1 08:27:50 EST 2014
Hi,
if you want to set the textShift dynamically you could this:
-------------------------------------------------------
put the long id of field "fFour" into tLID -- change name of field
-- calculate a textshift depending on the textHeight and textSize
put the effective textHeight of tLID into tTextHeight
put the effective textSize of tLID into tTextSize
put tTextHeight div 2 into tHalfTextHeight
put tTextSize div 2 into tHalfAscend
put (tHalfTextHeight - tHalfAscend) * -1 into tShift
set the textShift of line 1 to - 1 of tLID to tShift
--------------------------------------------------------
measureText would give you additional information about descend, if you want
to get fancy.
Kind regards
Bernd
--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Request-for-feedback-tp4686363p4686387.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode
mailing list