Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Some ideas needed how to handle the problem
Message
From
25/08/2009 17:47:06
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01420513
Message ID:
01420618
Views:
79
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform