program { name: "CollapseAll";
signal: "mouse,in";
source: "Applications";
action: STATE_SET "default" 0.00;
transition: SINUSOIDAL 0.20000;
target: "Places";
target: "System";
}
2009/8/10 Diego Jacobi <[email protected]>
> 2009/8/10 Dave Andreoli <[email protected]>:
> >
> >
> > 2009/8/10 Diego Jacobi <[email protected]>
> >>
> >> Hello.
> >> As i have stated before, i am just beginning with efl.
> >>
> >> I have started a test application.
> >> The goal is to make a fully themeable startmenu, so the user can
> >> completelly change the menu style by changing the .edj file.
> >>
> >> I started by making a menu with 3 columns, 2 of them (left and right)
> >> are collapsable and expand/collapse with mouse.in/out respectivelly.
> >>
> >> The problem is that the right column behaves weirdly and i cant find
> why.
> >> But it is equal to the left column, only different in relative
> >> positions and colors, and it behaves as expected.
> >
> > You have the same problem also in the left colum, simply it's more
> difficult
> > to see ;)
> > The error is that is not a good idea to change an object size/pos on
> mouse
> > in/out,
> > because the obj can go in/out the mouse while animated, and this will
> > trigger an
> > infinite loop (in-out-in-out-in etc....)
> >
> > To try this make the 4 animations last 0 seconds (and not 0.2), the
> problem
> > should
> > go away.
> >
> > Dave
>
> Thanks, but a collapsable column with mouse in/out event is not a
> todays idea, and dissabling the effects wont show up the beauty of
> edje.
> I think that the problem is that when it is doing the effect, mouse
> in/out events are not disabled, and so a new event can happen when the
> other is not yet ended.
> Also when the new effect starts, it doesnt starts from the current
> point, but from the previously targeted state. So if the previous
> effect is not finished, it will do a jump to the final state and begin
> with the new effect from there.
>
> Anyway, i see that i it wasnt the correct way to implement the auto
> expandable sidecolumns, because if i remove the mouse from the window,
> then the columns collapse.
> Instead i tryed to reimplement it by collapsing both sidecolumns only
> when the mouse joins the center column, and this wont give me the
> weird effect, but, i had to write 2 equal "programs" in edje to
> collapse both columns, because seems like edje can not handle the
> comma separated list that the hint says. Nothing happens when i make a
> comma sepparated list.
> This is the working code:
>
>
> collections {
> group { name: "main";
> max: 0 0;
> parts {
> part { name: "Background";
> type: RECT;
> description { state: "default" 0;
> }
> }
> part { name: "Applications";
> type: RECT;
> description { state: "default" 0;
> color: 81 79 182 255;
> rel1 {
> relative: 0.1 0;
> }
> rel2 {
> relative: 0.9 1;
> }
> }
> }
> part { name: "Places";
> type: RECT;
> description { state: "default" 0;
> color_class: "ColorsPlaces";
> color: 105 214 190 255;
> rel2 {
> relative: 0.1 1;
> }
> }
> description { state: "expanded" 1;
> color_class: "ColorsPlaces";
> color: 99 203 184 255;
> rel2 {
> relative: 0.4 1;
> }
> }
> }
> part { name: "System";
> type: RECT;
> description { state: "default" 0;
> color_class: "ColorSystem";
> color: 132 58 58 255;
> rel1 {
> relative: 0.9 0;
> }
> }
> description { state: "expanded" 1;
> color: 141 78 78 255;
> rel1 {
> relative: 0.6 0;
> }
> rel2 {
> relative: 1 1;
> }
> }
> }
> }
> programs {
> program { name: "ExpandPlaces";
> signal: "mouse,in";
> source: "Places";
> action: STATE_SET "expanded" 0.00;
> transition: SINUSOIDAL 0.20000;
> target: "Places";
> }
> program { name: "ExpandSystem";
> signal: "mouse,in";
> source: "System";
> action: STATE_SET "expanded" 0.00;
> transition: SINUSOIDAL 0.20000;
> target: "System";
> }
> program { name: "CollapseSystem";
> signal: "mouse,in";
> source: "Applications";
> action: STATE_SET "default" 0.00;
> transition: SINUSOIDAL 0.20000;
> target: "System";
> }
> program { name: "CollapsePlaces";
> signal: "mouse,in";
> source: "Applications";
> action: STATE_SET "default" 0.00;
> transition: SINUSOIDAL 0.20000;
> target: "Places";
> }
> }
> }
> }
>
> CollapseSystem and CollapsePlaces are the same programm for each col.
> And what i tryed to do is a "CollapseAll" programm, but it does nothing.
>
> Cheers.
> Diego
>
>
> ------------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
--
Regards.
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel