View previous topic :: View next topic |
Author |
Message |
Haruki Shigemori
Joined: 19 Oct 2006 Posts: 7 Location: Kyoto, Japan
|
Posted: Thu Oct 19, 2006 4:37 am Post subject: ListView can not make TrackSelect invalid |
|
|
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 |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Thu Oct 19, 2006 2:42 pm Post subject: Re: ListView can not make TrackSelect invalid |
|
|
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 |
|
|
Haruki Shigemori
Joined: 19 Oct 2006 Posts: 7 Location: Kyoto, Japan
|
Posted: Fri Oct 20, 2006 8:38 am Post subject: |
|
|
Thank you for your reply. |
|
Back to top |
|
|
|