Jump to content



Photo

ControlListView / ControlClick


  • Please log in to reply
12 replies to this topic

#1 spanga

spanga

    Seeker

  • Active Members
  • 35 posts

Posted 24 October 2005 - 12:15 AM

I have been trying to double-click items in ListViews with no success (except using the usual MouseClick-function). With the ControlClick it will click in the middle of the ListView (right?), which isn't that effective in ListViews, and I haven't even got it to work as a double-click.

If there isn't already a way to use Control to double-click a specific ListViewitem (that I obviously have missed) - I think it should be added, if possible ofcourse B) Maybe as a new command in the ControlListView-function.





#2 Koder

Koder

    Seeker

  • Active Members
  • 47 posts

Posted 28 October 2005 - 07:28 PM

Something I have tried when nothing else would work is to get the control size, position and height of the list items. Do some math and you can click on any item, given the row #. Sort of a virtual grid.

This pseudo code may need adjustment for zero or one based lists, but it's on the right track.

item count = control height / item height

vertical position = desired item * item height + (item height / 2) + control position
click(X, vertical position)

#3 Guest_Tho_*

Guest_Tho_*
  • Guests

Posted 21 August 2007 - 01:22 PM

I am running into the exact same problem and would highly appreciate this issue being taken into account by extending the list of possible functions that can be passed to a listview control.

The suggestion of Koder is a nice workaround indeed, but it's not easy to implement if you want to make it bulletproof (avoid clicking beyond end of the list, manage list scrolling to access invisible items etc.)

I'm quite surprised that this hasn't come up yet in this outherwise rather complete application.

Thx.

#4 varsha

varsha

    Seeker

  • Active Members
  • 11 posts

Posted 21 March 2008 - 05:27 AM

I am running into the exact same problem and would highly appreciate this issue being taken into account by extending the list of possible functions that can be passed to a listview control.

The suggestion of Koder is a nice workaround indeed, but it's not easy to implement if you want to make it bulletproof (avoid clicking beyond end of the list, manage list scrolling to access invisible items etc.)

I'm quite surprised that this hasn't come up yet in this outherwise rather complete application.

Thx.


Hi all,

I am also facing same problem, click on selectd item from listview. One of my project is stuck at this point only & i have to search solution for this within this week. Please help me as soon as possible. I am waiting for your reply.

Thanx in advance,
Bye

#5 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 21 March 2008 - 09:29 AM

_GUICtrlListView_ClickItem

SciTE for AutoItDirections for Submitting Standard UDFs

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


#6 varsha

varsha

    Seeker

  • Active Members
  • 11 posts

Posted 21 March 2008 - 10:00 AM

_GUICtrlListView_ClickItem



Thanx ,

Can u pls forward the Script for _GUICtrlListView_ClickItem.


Brgds,

#7 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 21 March 2008 - 10:04 AM

http://www.autoitscript.com/forum/index.ph...t=0&start=0

SciTE for AutoItDirections for Submitting Standard UDFs

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


#8 varsha

varsha

    Seeker

  • Active Members
  • 11 posts

Posted 31 March 2008 - 02:23 AM

http://www.autoitscript.com/forum/index.ph...t=0&start=0



Hello,

I have not found the script for _GUICtrlListView_ClickItem.

I am sending you one attachment pls go through it & reply me .

Attached Files



#9 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 31 March 2008 - 02:39 AM

Beta http://www.autoitscript.com/autoit3/files/beta/autoit/

3.2.11.0 (1/25/2008)
Added: UDF Files: _GUICtrlListView_ClickItem

SciTE for AutoItDirections for Submitting Standard UDFs

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


#10 varsha

varsha

    Seeker

  • Active Members
  • 11 posts

Posted 31 March 2008 - 03:21 AM

Beta http://www.autoitscript.com/autoit3/files/beta/autoit/

3.2.11.0 (1/25/2008)
Added: UDF Files: _GUICtrlListView_ClickItem


Have u gone through my attachment ?

#11 Zedna

Zedna

    AutoIt rulez!

  • MVPs
  • 8,315 posts

Posted 31 March 2008 - 08:34 AM

Have u gone through my attachment ?


Download latest beta, open Helpfile and go to _GUICtrlListView_ClickItem() as Gary said.
There is example in the helpfile.

#12 newbiescripter

newbiescripter

    Universalist

  • Active Members
  • PipPipPipPipPip
  • 270 posts

Posted 31 March 2008 - 11:47 AM

Well I'm running the newest beta version 3.2.11.5 and SciTe Version 1.75

And I'm not seing _GUICtrlListView_ClickItem() in the helpfile either :/
Hope you can help me cause I think this is what I need..

Regards

#13 GEOSoft

GEOSoft

    Sure I'm senile. What's your excuse?

  • MVPs
  • 10,563 posts

Posted 31 March 2008 - 12:02 PM

Well I'm running the newest beta version 3.2.11.5 and SciTe Version 1.75

And I'm not seing _GUICtrlListView_ClickItem() in the helpfile either :/
Hope you can help me cause I think this is what I need..

Regards

AutoIt Help File >>User Defined Functions >> GUIListView Management >> _GUICtrlListView_ClickItem()
GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!"




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users