Jump to content

Recommended Posts

Posted

GUICtrlCreateCombo("", 10, 10, 280, 100, $CBS_DROPDOWNLIST)
That's great Helge ...

However, if the combo's content is quite long ... this style will make the slider to dissapear and it will be quite difficult to scroll up/down the list.

It could be possible to do this and preserve the scroll ability?

Thanks,

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

  • Moderators
Posted (edited)

#include <guiconstants.au3>
Dim $string = ''
For $iCC = 1 To 500
    $string &= $iCC & '|'
Next
GUICreate('example')
$combo = GUICtrlCreateCombo("", 10, 10, 280, 100, BitOR($CBS_DROPDOWNLIST, $WS_VSCROLL))
GUICtrlSetData($combo, $string)
GUISetState()
While GUIGetMsg() <> -3
WEnd

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted

However, if the combo's content is quite long ... this style will make the slider to dissapear and it will be quite difficult to scroll up/down the list.

Sorry about that one, I hadn't tested it with so much data :whistle:
Posted

#include <guiconstants.au3>
Dim $string = ''
For $iCC = 1 To 500
    $string &= $iCC & '|'
Next
GUICreate('example')
$combo = GUICtrlCreateCombo("", 10, 10, 280, 100, BitOR($CBS_DROPDOWNLIST, $WS_VSCROLL))
GUICtrlSetData($combo, $string)
GUISetState()
While GUIGetMsg() <> -3
WEnd
:whistle:

That's a GREAT idea :P - you just saved me a whole lot of time.

THANK YOU

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...