FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Want to call function when listview row selected.

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
powder0326



Joined: 18 Mar 2009
Posts: 5

PostPosted: Sun Mar 29, 2009 10:26 pm    Post subject: Want to call function when listview row selected. Reply with quote

I want to call the function when the row is selected.
So I registered function in the ListView.onClick.
but, It was called only at time when the area outside of the row was clicked.
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Fri Apr 03, 2009 1:04 pm    Post subject: Re: Want to call function when listview row selected. Reply with quote

There's event selectedIndexChanged, but I'm not sure why it's not in dfldoc.

Code:
mylistview.selectedIndexChanged ~= &member_mylistview_selectedIndexChanged;
    ...
void member_mylistview_selectedIndexChanged(ListView sender, EventArgs ea)
{
    // Use selectedIndex, etc
}
Back to top
View user's profile Send private message
powder0326



Joined: 18 Mar 2009
Posts: 5

PostPosted: Tue Apr 07, 2009 7:30 pm    Post subject: Reply with quote

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group