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

How to select a item of listview?

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



Joined: 19 Oct 2006
Posts: 7
Location: Kyoto, Japan

PostPosted: Sat Feb 03, 2007 10:37 am    Post subject: How to select a item of listview? Reply with quote

Has DFL the way for selecting listview item?
Please show me how to do it.

Code:

class ListViewItem
{
...
public void selected(bool bselected)
{
    if(lview && lview.created)
    {
        LV_ITEMA li;
        li.stateMask = LVIS_SELECTED;
        li.state = (bselected ? LVIS_SELECTED : ~LVIS_SELECTED);
        lview.prevwproc(LVM_SETITEMSTATE, index, cast(LPARAM)&li);
    }
}
...
Back to top
View user's profile Send private message MSN Messenger
Chris Miller



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

PostPosted: Sun Feb 04, 2007 4:26 am    Post subject: Re: How to select a item of listview? Reply with quote

I can't believe I forgot to add this Smile Well, it's added in the current snapshot. It's just like you said, the ListViewItem has a selected property. Thanks for letting me know about it.
- Chris
Back to top
View user's profile Send private message
Haruki Shigemori



Joined: 19 Oct 2006
Posts: 7
Location: Kyoto, Japan

PostPosted: Sun Feb 04, 2007 8:48 am    Post subject: Re: How to select a item of listview? Reply with quote

Thank you for your reply.

However, is the current snapshot broken?
I can not find DflComObject class, dfl\internal\*.d (winapi.d, wincom.d, utf.d and com.d) files and others.
If I am wrong, I'm sorry.
Back to top
View user's profile Send private message MSN Messenger
Chris Miller



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

PostPosted: Sun Feb 04, 2007 11:34 am    Post subject: Re: How to select a item of listview? Reply with quote

You're right, please try again; sorry about that. The mistakes one makes when tired... Wink
Back to top
View user's profile Send private message
Haruki Shigemori



Joined: 19 Oct 2006
Posts: 7
Location: Kyoto, Japan

PostPosted: Mon Feb 05, 2007 5:55 am    Post subject: Re: How to select a item of listview? Reply with quote

Thank you Very Happy
Back to top
View user's profile Send private message MSN Messenger
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