I have some applications where the listbar is used to open and close different MDI child forms, and I have to check the form's data status before unloading (if it's dirty, I ask the user if they want to save it, etc.), stopping the unload if there are validation errors. This primarily comes into play when a new bar is selected. It would be nice if there were a way to cancel the repainting the listview, with a cancel parameter for the barclick event, or a before_barclick event, etc. Looking at the code, the barclick event isn't raised until the control is in the middle of doing all the bar setup work, so I can't really modify the code there to get this behavior.
Scott McLeod
McLeod Management Group
|