Announcement

Collapse
No announcement yet.

Combobox : No vertical scrollbar!

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

  • Lance Edmonds
    replied
    Yes, but the next one is very likely to!

    The main thing to remember with DDT controls is that you can use almost any style that a conventional Windows control can use, so WIN32.HLP can still be very valuable for additional Windows-related information not covered in the PowerBASIC documentation.

    If you have no done so, you can download the WIN32.HLP file from http://www.powerbasic.com/files/pub/mstools/win32.zip

    Also keep you eye on the latest WIN32API.INC file set from http://www.powerbasic.com/files/pub/pbwin/win32api.zip (this one is updated on a fairly regular basis).

    I hope this helps!




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

    Leave a comment:


  • Frederic Faure
    replied
    Thanks Lance, that did it.

    BTW, that switch was not mentionned in the ADD CONTROL COMBOBOX section in the PB/DLL 6 help file.

    Thx
    FF.



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

    Leave a comment:


  • Lance Edmonds
    replied
    Add %WS_VSCROLL to the style list. However, if the height of the CB is too low, you may not get a scroll thumb.

    Also try adding %CBS_DISABLENOSCROLL if you always want the scrollbar even if the list is less than the combo's dropdown height.

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

    Leave a comment:


  • Frederic Faure
    started a topic Combobox : No vertical scrollbar!

    Combobox : No vertical scrollbar!

    Hi,

    I'm just beginning with DDT, so it could be sthing ez, but the combobox below displays no vertical scrollbar when I click on the arrow even though not all items can be shown. Is it an extra setting that is not listed in the help file?

    Code:
        DIM MyStrings(7) AS STRING
        MyStrings(0) = "Machine 1"
        MyStrings(1) = "W2K"
        MyStrings(2) = "Machine 3"
        MyStrings(3) = "Machine 4"
        MyStrings(4) = "Machine 5"
        MyStrings(5) = "Machine 6"
        MyStrings(6) = "Machine 7"
    
      CONTROL ADD COMBOBOX, hDlg, %IDCOMBO, MyStrings(), _
        27,  9, 197, 39, %CBS_DROPDOWNLIST OR %CBS_SORT OR _
        %CBS_UPPERCASE OR %WS_TABSTOP
    Thx
    FF.


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


    [This message has been edited by Frederic Faure (edited July 13, 2001).]
Working...
X