Sign in to follow this  
Followers 0
fisofo

button inside listview item?

18 posts in this topic

#1 ·  Posted (edited)

i've just got a lot of questions lately :whistle:

I've figured out how to perform events on selection of listview items, but i was wondering if it was possible to actually put a button into a "cell" in the listview table? After a lot of searching i'm guessing the answer is no, but i thought i'd ask just to be sure.

thanks!

Edited by fisofo

Share this post


Link to post
Share on other sites



well there will be alot of interfering and it will be crap but im sure you can set text in a listview and if it is hovered over or high lighted use a continuos check for highlight text and then if it is returned to be highlight or whatever then do the function

Share this post


Link to post
Share on other sites

well there will be alot of interfering and it will be crap but im sure you can set text in a listview and if it is hovered over or high lighted use a continuos check for highlight text and then if it is returned to be highlight or whatever then do the function

true, but then:

I've figured out how to perform events on selection of listview items

i don't really see the difference there? Anyway, it doesn't really sound like it's possible to get an actual button in a listview item... someone correct me if i'm wrong :whistle:

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

true, but then:

i don't really see the difference there? Anyway, it doesn't really sound like it's possible to get an actual button in a listview item... someone correct me if i'm wrong :whistle:

What purpose would putting a button in a listview item serve?

Edited by gafrost

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

What purpose would putting a button in a listview item serve?

well, for looks mainly. Basically, I'm designing an extension to my works ticketing system, and the listview contains all the open tickets for the current user. I was thinking it would be nice to have an easy access button alongside each listview item that the user could click to bring up options for updating/closing tickets. As it is, I may just use a context menu instead with those options in it (from an example of yours gafrost :whistle: )

Anyway, that's the concept, it was more for aesthetics than anything else.

Share this post


Link to post
Share on other sites

http://www.autoitscript.com/forum/index.ph...=5279&st=15 check that out about double clicking listviews, check the last post by gary

thanks for the link, that's a nice script. Just an fyi though, you don't seem to be actually reading my posts. Just above this I listed that I was going for aesthetics, in terms of having a button in the listview. What button inside a listview does the link have that you posted? Not only that, but I already said I knew how to perform an event on selection of a listview, did I ask for one that would do an event on double-click?

I mean no disrespect, but seriously, if I'm being confusing, please just ask what I mean instead of posting stuff i didn't ask for (no matter how good the code is). You do that, and I'll keep trying to be clear the first time what it is I'm trying to do. I just figured after two responses explaining what I was looking for that this would have been clear.

thanks.

Share this post


Link to post
Share on other sites

hehe no i didnt read your post i only posted that cuz you can click in the Listview are and do something :whistle: im unsure on what the button is really for when you could just make a button off to the side of the GUI

Share this post


Link to post
Share on other sites

hehe no i didnt read your post i only posted that cuz you can click in the Listview are and do something ;) im unsure on what the button is really for when you could just make a button off to the side of the GUI

no problem, thanks for reading this time :whistle:

I actually tried that method before posting... one button alongside each listview item... but it gets difficult when you start sorting items in the listview. Plus if you have to scroll down in the listview window (if it's too small), the buttons just go past the boundary of the gui.

Anyway, i'm just going to use the "event on selection" code and work something with that. thanks for the input guys.

Share this post


Link to post
Share on other sites

lol just saying if the problem was the GUI not scrolling then Scrollable GUIs were the answer , and with the double click in one of your posts it said you want to edit the current tickets and stuff, so if you double click the GUI then say it opens up an edit window to edit them just like the example posted in the link i gave you or am i not understanding the question, i understand u got a list of tickets and you want to click a button say inside or, next to each listview row and edit it?

Share this post


Link to post
Share on other sites

lol just saying if the problem was the GUI not scrolling then Scrollable GUIs were the answer , and with the double click in one of your posts it said you want to edit the current tickets and stuff, so if you double click the GUI then say it opens up an edit window to edit them just like the example posted in the link i gave you or am i not understanding the question, i understand u got a list of tickets and you want to click a button say inside or, next to each listview row and edit it?

ooooh... i wasn't following you there at first. Yep, that's not a bad idea, i'll have to see how it works. Thanks! :">

Share this post


Link to post
Share on other sites

i mean double click the Listview

Share this post


Link to post
Share on other sites

i mean double click the Listview

yep.

Share this post


Link to post
Share on other sites

im kind of curious as to why a window is needed to be open in order to edit the listview? are you just going to make inputs that they input the stuff to edit it instead of them editing it manually so its easier or what

Share this post


Link to post
Share on other sites

im kind of curious as to why a window is needed to be open in order to edit the listview? are you just going to make inputs that they input the stuff to edit it instead of them editing it manually so its easier or what

is this in regards to what I'm trying to do? No I won't be making inputs, the data in my listview is pulled from a php server online, they won't be able to edit the items. I just like the idea of a button for them to click to bring up options (such as open/close ticket, etc...) rather than a single/double click event on the listview item. Again, aesthetics, not that big of a deal.

You might be able to using AnyGUI.

Here is an example of buttons mounted on the desktop listview: http://www.autoitscript.com/forum/index.php?showtopic=34147

thanks for the link, I find the AnyGUI intriguing, but just so you know, that script does not use listview. For those interested, Kohr has something along the lines of what I was thinking of (in regards to buttons, I wouldn't want the input boxes all over the table), check it out: linky.

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