MSFN Forum: WIHU Wishlist - MSFN Forum

Jump to content



  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

WIHU Wishlist Rate Topic: -----

#21 User is offline   opensurf 

  • Newbie
  • Group: Members
  • Posts: 22
  • Joined: 10-November 03

Posted 06 September 2004 - 06:15 AM

Quote

It's possible to deselect the subcommands of option one when i select option two?


I hope the following change (RED) in listviewex.c could solve the problem. I have used sourcecode 2.1.9.3:

...
int ListViewExSetCheckState(HWND hLv, LV_EX_ITEM* Item, LV_EX_STATE State) {
LV_EX_ITEM *Parent, *Child;
Parent = ListViewExGetParent(hLv, Item);
if (Parent && Parent->Flags & LVEXF_GROUP) {
Child = Parent->Next;
while (Child) {
if (Child->Indent <= Parent->Indent) break;
if (Child->Indent == Item->Indent) {
Child->CheckState = 0;
Child = Child->Next;
if (Child->Prev != Item){
while (Child && Child->Indent > Item->Indent) {
Child->CheckState = 0;
Child = Child->Next;
}
}

}
else
Child = Child->Next;
}
}
Item->CheckState = State;
return 1;
}
...

CU, opensurf


#22 User is offline   BenjaminKalytta 

  • Developer
  • PipPipPipPip
  • Group: Members
  • Posts: 609
  • Joined: 08-June 04

Posted 06 September 2004 - 09:02 AM

No it isn't as easy as you think. And also it isn't wanted.
Take this example:

(x) Option 1
    [x] Sub Item 1
    [ ] Sub Item 2
    ...
( ) Option 2
( ) Option 3


May be you decided to unselect "Sub Item 2". "Sub Item 2" could have hundreds more items which you manual selected. If you then select "Option 2" entire work selecting subitems from "Option 1" is in vain. This is mostly unwanted!

Benjamin

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy