PR# 5595 Starting a pick-and-drop programmatically

Problem Report Summary
Submitter: ericbe
Category: EiffelVision
Priority: Medium
Date: 2005/10/11
Class: Support
Severity: Non-critical
Number: 5595
Release: 5.6.1218
Confidential: No
Status: Analyzed
Environment: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
Synopsis: Starting a pick-and-drop programmatically

Hi Julian,

Is there a way in EiffelVision2 to start a pick-and-drop programmatically, instead of just right-clicking with the mouse? For example let's say that I want the action of clicking on an EV_BUTTON to start a pick. I would write:

   my_button.select_actions.extend (agent do_something)

   do_something is
            -- some processing here.
            if some_condition then
                set_pebble_position (x, y)
                -- do something else.

What should I put where I wrote `start_pick'?
To Reproduce

Problem Report Interactions
From:ericbe    Date:2005/10/11    Download   
==== Julian: Tue Oct 11 15:42:13 PDT 2005 ===============================

Hi Eric,

Unfortunately, there is currently no method of programatically
starting a pick and drop in EiffelVision2. It is always started with
a press of the right mouse button. If you are able to, you need to call
the feature `real_start_transport' from EV_PICK_AND_DROPABLE_IMP, being
sure to pass 3 as the button that is pressed.
Another possibility is to simulate a button press on the desired widget
via `fake_pointer_button_press' or `fake_pointer_button_click' from
EV_SCREEN. This may or may not have other side effects, but depending on
your exact situation it may work fine.

==== Julian: Tue Oct 11 15:42:13 PDT 2005 ===============================