View previous topic :: View next topic |
Author |
Message |
Haruki Shigemori
Joined: 19 Oct 2006 Posts: 7 Location: Kyoto, Japan
|
Posted: Sat Feb 03, 2007 10:37 am Post subject: How to select a item of listview? |
|
|
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 |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Sun Feb 04, 2007 4:26 am Post subject: Re: How to select a item of listview? |
|
|
I can't believe I forgot to add this 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 |
|
|
Haruki Shigemori
Joined: 19 Oct 2006 Posts: 7 Location: Kyoto, Japan
|
Posted: Sun Feb 04, 2007 8:48 am Post subject: Re: How to select a item of listview? |
|
|
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 |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Sun Feb 04, 2007 11:34 am Post subject: Re: How to select a item of listview? |
|
|
You're right, please try again; sorry about that. The mistakes one makes when tired... |
|
Back to top |
|
|
Haruki Shigemori
Joined: 19 Oct 2006 Posts: 7 Location: Kyoto, Japan
|
Posted: Mon Feb 05, 2007 5:55 am Post subject: Re: How to select a item of listview? |
|
|
Thank you |
|
Back to top |
|
|
|