Announcement

Collapse
No announcement yet.

Scrollbars in textbox??

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

  • Scrollbars in textbox??

    Hi,
    I want a textbox with scrollbars.
    In this forum, I found a post that suggested to use %WS_HSCROLL OR %WS_VSCROLL
    in the style.
    I used the following statement, but no scrollbars appear...:-(

    CONTROL ADD TEXTBOX, hMainForm&, %MAINFORM_SUBSHOWTEXT, "", 118, 79, 373, 173, _
    %WS_CHILD OR %WS_VISIBLE OR %ES_AUTOHSCROLL OR %ES_MULTILINE OR %ES_WANTRETURN OR %ES_AUTOVSCROLL, _
    %WS_EX_CLIENTEDGE OR %WS_HSCROLL OR %WS_VSCROLL CALL CBF_MAINFORM_SUBSHOWTEXT

    kind regards
    Eddy


    ------------------
    Eddy

  • #2
    Sorry folks! Typo!
    I accidently put the %WS_HSCROLL and %WS_VSCROLL styles in the
    ExStyle& field...
    This one creates the nicest scrollbars you've ever seen...:-) :

    CONTROL ADD TEXTBOX, hMainForm&, %MAINFORM_SUBSHOWTEXT, "", 118, 79, 373, 173, _
    %WS_CHILD OR %WS_VISIBLE OR %ES_AUTOHSCROLL OR %ES_MULTILINE OR %ES_WANTRETURN OR %ES_AUTOVSCROLL _
    OR %WS_HSCROLL OR %WS_VSCROLL, %WS_EX_CLIENTEDGE CALL CBF_MAINFORM_SUBSHOWTEXT

    ------------------
    Eddy

    Comment

    Working...
    X