From: Sebastien L. <seb...@gm...> - 2005-06-05 19:21:52
|
Hi, First I would like to thank Alex and all other developers for pythoncard. I use it mainly for home project but it's always a mean to provide a decent/good GUI without wasting too much time. Now my question, I like to build forms with a multicolumnlist in the bottom of the screen (the list of editable data) and many labels and textField in the upper part of the screen (to edit the data). I used a generic helper class to bind data to screen, to validate the data and perform creation, modification and removal of element. My problem is the following : I have a list of 3 element, I first use myList.SetSelection to select the first line (the first line become blue) and update all the textField with element's data. if I modify a TextField and try to select line 2 of mu MultiColumnList, I start a messagDialog to check if the user wants to cancel his modification and switch to element 2 or stay to line 1. My problem is that if the user cancel the second line of the MultiColumnList is still selected but the data in the TextFields still come from the first line. I tried to call=20 SetSelection(2, 0) SetSelection(1, 1) It should work but those methods generate select event causing some nasty effect difficult to catch. Thanks in advance for your ideas and forgive me in advance if my question is trivial .... ;) S=E9bastien |