Announcement

Collapse
No announcement yet.

auto_V_Scroll in Listbox

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

  • auto_V_Scroll in Listbox

    I'm currently using this listbox:

    Control Add ListBox, hDlg, %IDLISTBOX1,,5,5,%FRAME_WIDTH,115,%LBS_SORT Or %WS_TABSTOP,%WS_EX_CLIENTEDGE

    and would like to have a vertical scroll bar on it?

    can it be done? Help file shows nothing and %ES_AUTOVSCROLL does not work on it


    Help! hehe

    Scott

    ------------------
    Scott
    mailto:[email protected][email protected]</A>
    Scott Turchin
    MCSE, MCP+I
    http://www.tngbbs.com
    ----------------------
    True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

  • #2
    %WS_VSCROLL, not %ES_AUTOVSCROLL



    ------------------
    E-MAIL: [email protected]

    Comment


    • #3
      To expand Semens answer slightly:

      Equates starting with %ES_ are for Edit Controls (ES = Edit Style).

      Equates starting with %WS_ are generic Window/Control styles. Controls generally use use at least some of these styles, but it depends on the type of control in question.

      In your case, you need to use a generic %WS_VSCROLL style. You may wish to include the %LBS_DISABLENOSCROLL is you want the scrollbar to be visible even if the list does not exceed the extent of the listbox.


      ------------------
      Lance
      PowerBASIC Support
      mailto:[email protected][email protected]</A>
      Lance
      mailto:[email protected]

      Comment


      • #4
        Thanks Lance, I DO like that look, lets them know they can put more files in!


        Scott

        ------------------
        Scott
        mailto:[email protected][email protected]</A>
        Scott Turchin
        MCSE, MCP+I
        http://www.tngbbs.com
        ----------------------
        True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

        Comment

        Working...
        X