On Fri, 14 Aug 2009 14:49:08 -0400 Atton Jonathan <jonathan.at...@gmail.com> said:
> 2009/8/14 Gustavo Sverzut Barbieri <barbi...@profusion.mobi> > > > On Fri, Aug 14, 2009 at 1:57 PM, Atton Jonathan<jonathan.at...@gmail.com> > > wrote: > > > hey, > > > > > > I am working on an elementary client for eyelight. Currently I display > > the > > > presentation in an elm_scroll container and we can change the size of the > > > presentation with a slider. > > > > > > I need 3 things: > > > - if the content of the scroll widget is smaller than the scroll widget, > > > center the content. > > > > did you try: evas_object_size_hints_align_set(child, 0.5, 0.5)? Maybe > > it works, maybe it needs implementing/fixing. > > > It seems not working but I need to do some test, layout are a bit complicate > >.< > > > > > > > > - deactivate the mouse wheel > > > - send an event mouse_wheel, I wish to change the size of the > > presentation > > > with the wheel instead of scrolling. > > > > > > I am ok to write these patchs but I wait yours advises. I don't want > > write a > > > patch for nothing :) > > > > I guess you can just add an object on top of the scroller to get the > > events. Set it to repeat events, so you get them first, if you handle > > it you just set on_hold flag and scroller should ignore the event... > > if not, just add check for on_hold events in scroller. > > > Work great, I have patch elementary and add the test on on_hold. > The EFL are a treasure of tips. hmm i'm wondering why you want to scroll? it's a presentation right? just scaling it should be all you need... right? as for align - no. scroller wont do that... should it? i guess it should if child smaller than scroller. -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel