The list view control sends notification messages to its parent (the dialog) when certain events happen. For more information on notification messages, refer to ConnectListNotify.
The following example shows how to connect the list view notification messages with the corresponding message:
::method Init use arg InitStem. if Arg(1,"o") = 1 then InitRet = self~Init:super else InitRet = self~Init:super(InitStem.) if self~Load("list.rc", ) \= 0 then do self~InitCode = 1 return end /* Connect dialog control items to class methods */ self~ConnectListNotify("IDC_LIST","Changing","OnChanging_IDC_LIST") self~ConnectListNotify("IDC_LIST","Changed","OnChanged_IDC_LIST") self~ConnectListNotify("IDC_LIST","DefaultEdit") self~ConnectListNotify("IDC_LIST","Delete","OnDelete_IDC_LIST") self~ConnectListNotify("IDC_LIST","KeyDown","OnKeyDown_IDC_LIST") self~ConnectButton("IDC_PB_NEW","IDC_PB_NEW") self~ConnectButton("IDC_PB_DELETE","IDC_PB_DELETE") self~ConnectButton(2,"Cancel") self~ConnectButton(9,"Help") self~ConnectButton(1,"OK") return InitRet