Resizeable Textarea

Some time ago there was an interesting posting on the OTN forum about integrating resizeable textareas into APEX (especially into the Application Builder).

I thought that is a nice and useful feature, so I adapted it a little bit and integrated it into the new release of the ApexLib Framework.

Check it out on the ApexLib Feature Demonstration page.

How to use it in your application?

Just add the ApexLib hint $APEXLIB_V_RESIZE$ into the “Comment” property of your Page Item or the “Link Attributes” property of your Tabular Form column.

If you want that all your textareas in your application are resizeable, you can also add a call to

ApexLib_Browser.setTextareaProperty
  ( pProperty => ApexLib_Browser.VERTICAL_RESIZEABLE
  );

in your “ApexLib – Before footer” region of page 0.

I have tested this feature with IE 6.0/7.0 and Firefox 2.0, please let me know if it also works with other browsers. Thanks!

8 thoughts on “Resizeable Textarea

  1. Hi,

    what would be the exact purpose for that? How should it behave if the text/content doesn’t fit anymore?

    I think the best is if you write me an e-mail for details.

    Patrick

  2. the only problem with it would be that it will break the designs of sites when the user resizes – unless you use some absolute positioning trickery

  3. Hi David,

    haven’t seen yet that the resize really brakes the site layout, at least not for an APEX application, because the layouting is done with tables. Or maybe my APEX layouts/pages are just too simple :-)

    Patrick

  4. Hi!

    This works great, I really love it!

    I was wondering if this feature can also be used with the apex_item.textarea()
    function?

    Jure

  5. Hi Jure,

    add a call to ApexLib_Browser.setTextareaProperty
    ( pFieldId IN VARCHAR2
    , pProperty IN BINARY_INTEGER
    );

    to your page. Note, it has to be before the ApexLib page 0 footer region.

    If you need more help, contact me directly via mail.

    Patrick

Comments are closed.