Jump to content
Sign in to follow this  
WhiteCrow

Trouble with GUICtrlCreateList

Recommended Posts

WhiteCrow

I've made a program wich uses quite a big list of items, when you select one item and push a button in the gui, the item will be used in a function.

But what i need it to do also, is when a item in the list is doubleclicked, use it in the function. (same as button pressed)

I tried to change the example from GUICtrlCreateListView doubleclick(from another topic) to work with a List, but i cant seem to get it to work.. :lmao:

Anybody got a idea how i can make it work ?

Thanks in advance.

Share this post


Link to post
Share on other sites
Valuater

$list = guictrlcreatelist()

while 1

$msg = guigetmsg()

if $msg = $list then run( guictrlread($list))

wend

just an idea

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites
WhiteCrow

$list = guictrlcreatelist()

while 1

$msg = guigetmsg()

if $msg = $list then run( guictrlread($list))

wend

just an idea

8)

Thanks for the reply, i already have that part :lmao:

I need to intercept doubleclick on the List item, thát i can not get to work.

Share this post


Link to post
Share on other sites
WhiteCrow

While i'm asking questions, i also got a GUICtrlCreateInput, with a search button next to it.

Its working like this atm: fill something in the inputbox, and click the search button.

What i would like is: type something in the inputbox, and press Enter to search something also.

Again, Thanks in advance!

Share this post


Link to post
Share on other sites
GaryFrost

While i'm asking questions, i also got a GUICtrlCreateInput, with a search button next to it.

Its working like this atm: fill something in the inputbox, and click the search button.

What i would like is: type something in the inputbox, and press Enter to search something also.

Again, Thanks in advance!

GuiCtrlSetState(control id, $GUI_DEFBUTTON)

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
WhiteCrow

GuiCtrlSetState(control id, $GUI_DEFBUTTON)
:lmao: Why the hell did i not see that, works like a charm..

Thank you again :ph34r:

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  

×