Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mover class
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00522167
Message ID:
00683516
Views:
29
Hi Doron,

I just sent your my Stats project. The form frmStats uses multiselect grid from nAdditions.vcx I didn't program my "mover" as a class, so I just added multiselect grid on form and I added listbox directly on form. ListBox shows selected items, allows to delete (unselect). I also use this form to save/restore user's selections, e.g. next time the particular configuration is invoked, it shows correctly all previously selected items. I did this form about 1 year ago, so I don't recall all particular details, but I hope you can figure this out by looking at the code...

>Hi Nadya,
>
>I apprecaite that. Please e-mail that to me to doron@dfarber.com and I can test it on my project.
>
>Thanks,
>
>Doron
>
>>Hi Doron,
>>
>>I can probably can send you my implementation, if you'd like. However, I'm not sure, if this is what are you after...
>>
>>I implemented is as MultiSelect grid + listbox only to show, what is selected. The items in the multiselect grid don't disappear, they just stay selected...
>>
>>>Hi Nadya,
>>>
>>>I was thinking to use a mover obejct with grids it will have much more flexiblity. How did u resolve the nover class. Since I also need a mover that when ever I move an item from left to right the item on the left chabges its color so the user can select it more then once.
>>>
>>>Regards,
>>>
>>>Doron
>>>
>>>>>Nadya,
>>>>>
>>>>>I don't think I misunderstood *s*
>>>>>
>>>>>When you change parent records you Requery the child views right? If the user makes changes with the moverlist you can either TableUpdate() to commit them or TableRevert() to cancel. In cases like this I typically use parent table navigation to do implicit saves to child views, they have an undo feature to cancel changes so I let them work as unfettered as possible without inane Do You Want To Save Changes dialogs popping up all the time.
>>>>
>>>>How do you update child table? How do you delete records from the child, if you delete record from the parent? Do you use RI? I'm working in this direction right now.
>>>>
>>>>BTW, instead of Mover I implemented MultiSelect Grid + ListBox. When I select items in the grid, I show selections in the Listbox (Multiselect=.t.). I also allow to delete records from ListBox, and this updates selections. Everything works fine so far, except for delete (I haven't created a RI yet).
>>>>
>>>>Thanks again for your help.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform