Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Some ideas needed how to handle the problem
Message
De
25/08/2009 17:47:06
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01420513
Message ID:
01420618
Vues:
78
This message has been marked as a message which has helped to the initial question of the thread.
>I have a mover container based class with 4 buttons (and drag-drop functionality). The buttons to move one item call MoveOne method of the container class (with appropriate parameters to indicate direction) and buttons to move all items call MoveAll method.
>
>My problem is that I need to execute some code when I move items from left to right and then I remove items from right to left.

I would suggest adding some custom event methods.

OnMoveRight(tnIndex)
OnMoveRightAll()
OnMoveLeft(tnIndex)
OnMoveLeftAll()

Then in your MoveOne method call the OnMoveLeft() passing the index of the item being moved (moving right to left). Similar for your method that moves left to right call the OnMoveRight() passing index. In your moveall call the appropriate OnMove...All() method.

Then the On... methods are used by the enduser to code any additional logic at the implementation level. These methods are public and your methods are private to the class.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform