Apache OpenOffice (AOO) Bugzilla – Issue 22599
[RFE] auto-sizing for text-base controls
Last modified: 2013-08-07 15:45:41 UTC
It would be helpful if combo boxes and other text-based controls could be set to automatically expand or shrink vertically to accomodate the text retrieved from a database. The text length is not always known in advance, and it would save space if the control would expand/shrink to the minimum required size.
I could have sworn that this is already part of one of my PCD (product concept document) issues for OOo 2.0, but this seems not to be the case. I think were it best fits in is issue 20325, so I add a dependency. Additionally grabbing, confirming, targeting.
now really adding dependency ....
accepting
change subcomponent to 'none'
adding ms_interop keyword
This task is retarget to OOo2.0. The product team has decided, that this is a must feature for OOo 2.0.
set to wrong target by mistake, reset to OfficeLater
assigning to user experience team for consideration, according to the guidelines for handling feature/enhancement requests
I would like to put in a thought or two on this. For me it is not very important to have the control re-size itself based on the text that is fetched form the database. Ratther - What I would like to see is the ability to have the control attach itself to a region. For example, it would be nice to have the control attach to a side of the form (Top, left, right, bottom). Say I put a text control on a form and attached it to the frame bottom. The control should extend from the left edge of the forms frame to the right edge. I would be able to drag only the top of the control, opening it say to any height I like. If the user exapands the fram then to maximum, the control should still be at the bottom of the frame and retaine its height setting. Now, expanding on this, it should be possible to stack controls. So let's say that we drop the first control on the form, set it to attach to the frame bottom. Then size it appropiratly. Now drop a second control on the form and set it to attach to frame bottom. This shold place the second control directly above the first, with is bottom edge 'glued' to the top edge of the first control. If I grabbed the top edge of the first control and expanded it upwards the second control should move along with it, retaining its relative size. In some other form desingers they also have the concept of a panel, the panal having the ability to attach itself to an edge. Controls placed on the panel stay on the panel. I don't know whether this is possible with text boxes now. An additional feature of panels is often the ability to propogate settings. For example there may be an enable method exposed on the panle, setting the value for the method on the panel propogates this to any conrtols on the panel that share the same method. If so, then if a text control could be extended again to support filling the frame, or filling a panel one could build forms of this type. Place a panel on the form. Attach it to the top frame. Place some controls on it. Place a second panel on the form, attach it to the bottom edge of the frame. Size and place some controls on it. Now place an edit control on the form, not inside any panel. Set it to fill the form. Then control should go from the left edge of the frame to the right edge of the frame, from the Bottom edge of the top panel to the top edge of the bottom panel.
To grep the issues easier via "requirements" I put the issues currently lying on my owner to the owner "requirements".