  | |  | Number of visible lines in a TextField | Number of visible lines in a TextField 2004-03-07 - By ryanm
Back How can I find the number of visible lines in a scrolling text field. What I mean by that is, if I know that maxScroll = 10, how do I know how many lines a "page" consists of, so that I can have a scrollbar scroll down a full page when you click on the scroll track below the tab? For example, if there are 5 lines visible in the text field, then I would scroll += 5 to page down. But the TextField doesn't have a property like that, and _height and textHeight are pretty useless since they are in pixels. Has anyone dealt with this before? If so, how?
ryanm
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:106252 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |