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

ListView can not make TrackSelect invalid

 
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: Thu Oct 19, 2006 4:37 am    Post subject: ListView can not make TrackSelect invalid Reply with quote

HI.

I found that ListView could not make hover-selection invalid with DMD 0.169 and DFL 0.9.2 latest snapshot on Windows XP SP2.
I rewrited a file dfl/control.d (4167) to fix up the problem.

before:
Code:
tme.dwFlags = TME_HOVER | TME_LEAVE;


after:
Code:
tme.dwFlags = TME_LEAVE;


Please let me hear your comments.

sample code:
Code:

import dfl.all;
class MyForm : Form {
    this() {
        with (list = new ListView) {
            parent = this;
            hoverSelection = true; // or false, but invalid
            auto col = new ColumnHeader;
            col.width = 100;
            columns.add(col);
            items.add("foo");
            items.add("bar");
        }
    }
    private ListView list;
}
void main() {
    Application.run(new MyForm);
}
Back to top
View user's profile Send private message MSN Messenger
Chris Miller



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

PostPosted: Thu Oct 19, 2006 2:42 pm    Post subject: Re: ListView can not make TrackSelect invalid Reply with quote

Thanks for letting me know about this. Your fix was on the right track but I found a better way to handle it. Changes in new snapshot (for DMD 0.172)
Back to top
View user's profile Send private message
Haruki Shigemori



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

PostPosted: Fri Oct 20, 2006 8:38 am    Post subject: Reply with quote

Thank you for your reply.
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