Sign in to follow this  
Followers 0
shaamaan

GUICtrlCreateCombo readonly

7 posts in this topic

hi,

it is possible to make readonly combo like for example GUICtrlCreateEdit with $ES_READONLY?

thaks

Share this post


Link to post
Share on other sites



wow! that was quick :whistle: many many thaks!

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites

#5 ·  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

[center]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.[/center]

Share this post


Link to post
Share on other sites

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:

Share this post


Link to post
Share on other sites

#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 :)

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0