Detecting wrap in a field
Posted: Tue Dec 06, 2011 2:58 am
Hi!
Is there a message sent by a field when a line wraps? I have two fields which contain input and output file paths in a second line in a main stack very similar to LC's Menu Bar stack (the rest of the app is substacks which automatically dock under the bar). Paths of course can be quite long. If the user resizes the stack, I have these two fields set to auto-size their widths in the resizeStack handler. I was wondering if there was a simpler way to tell the stack and the fields to increase their height to accomodate wrapping in the two fields, rather than having to measure each field "manually" in the resizeStack handler.
I don't think there is, but I thought there might be a chance (at least 1 in 3, the usual case...) that I missed something.
Thanks, Walt
Is there a message sent by a field when a line wraps? I have two fields which contain input and output file paths in a second line in a main stack very similar to LC's Menu Bar stack (the rest of the app is substacks which automatically dock under the bar). Paths of course can be quite long. If the user resizes the stack, I have these two fields set to auto-size their widths in the resizeStack handler. I was wondering if there was a simpler way to tell the stack and the fields to increase their height to accomodate wrapping in the two fields, rather than having to measure each field "manually" in the resizeStack handler.
I don't think there is, but I thought there might be a chance (at least 1 in 3, the usual case...) that I missed something.
Thanks, Walt