Announcement

Collapse
No announcement yet.

Textbox question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Textbox question

    Hi everybody,

    I would like to know how to limit the number of characters for a line in a textbox and
    a listbox.

    With my code I can't limit it ...

    tbstyle&=%ES_LEFT OR %ES_MULTILINE OR %ES_WANTRETURN OR %ES_AUTOHSCROLL OR %ES_AUTOVSCROLL
    CONTROL ADD TEXTBOX,hdlg&,%idtext1,"",10,55,480,215,tbstyle&,%WS_EX_CLIENTEDGE

    Wen I populate the textbox with the Power Basic Readme-File the textbox produces very very
    long lines.

    Maybe you can give me an better working example.

    Best regards
    Heinz Fischer

    ------------------

  • #2
    Heinz,

    Omit "%ES_AUTOHSCROLL" if you want the text to wrap and not to scroll horizontally, that's the easiest way.

    Regards,

    ------------------
    Kev G Peel
    KGP Software, Bridgwater, UK.
    mailto:[email protected][email protected]</A>
    kgpsoftware.com | Slam DBMS | PrpT Control | Other Downloads | Contact Me

    Comment

    Working...
    X