Hello,
  Never mind, but for the reader, I did end up trapping the event in evas and
calling the event I wanted to fire off.  This probably could have been done a
couple of ways, but it worked, so hey ;-).


void on_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info) {
  Evas_Event_Mouse_Down *ev;
  ev= event_info;

   if((ev->flags !=  EVAS_BUTTON_NONE)) {
         edje_object_signal_emit(edje, "mouse,down,1",the_part_name);
  } 
}

I did have to cut some other code to send the proper part name, but that was 
a little strtok work. 

And set the callback elsewhere:

evas_object_event_callback_add(edje, EVAS_CALLBACK_MOUSE_DOWN, on_mouse_down, 
NULL);

If this is the wrong way to approach it, please let me know, but it did seem to
work consistently.

Thanks,
Jess

On Wed, May 14, 2008 at 05:40:14PM -0400, jess wrote:
> Hello,
>   I am trying to figure out how to address an issue I am having with
> Edje.  I have several icons on the screen, and have set them up to be
> dragable.  The problem I run into is that dragable seems to allow a
> double click (so the user double taps the icon and holds on the second
> press).  I have experimented quite a bit, and it seems also to be
> problematic for a triple click.  Does anyone know of a way to disable
> this behavior?  Should I be trapping the event with Evas.  I found a
> similar thread from Gustavo regarding the virtual keyboard he put
> together, and it seems that was one approach, but am not sure where that
> ended up, or have any information about passed edje parts back to Evas.
> Does anyone have any examples (I have looked, but most of that seems
> more geared towards programs where everything is handled via Evas, and
> not really a mix between the two).  Or alternatively, am I being a moron
> and over complicating this?  :-).  Seems it should be easy, but I have
> been banging my head over it for several hours and haven't made much
> progress (other than learning some really cool Evas stuff, which will
> help later for sure).  
> 
> Another piece to mention about this is that is a touch screen
> application and while not obvious to me at first glance (developing on
> my desktop with a mouse), the customer pointed it out almost immediately
> (eeek), so seems to be more common there as a user may not touch and
> hold, but lightly release and then hold on the second press.
> 
> http://sourceforge.net/mailarchive/message.php?msg_id=9ef20ef30707131454w7507687ct5394833150cba142%40mail.gmail.com
> 
> Here is the only concise documentation I was able to track down for the
> dragable edc block.
> http://docs.enlightenment.org/api/edje/html/edcref.html
> 
> Thanks for any insight,
> Jess
> 
> 
> 
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft 
> Defy all challenges. Microsoft(R) Visual Studio 2008. 
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to