Hi, I have some problems with my edje file (see attachment). When I make a program part for the right and left swallow parts, it's work at 100%. But when I try it for the top and bottom part, it place randomly the view when I'm trying to resizing it. Could you help me to understand this problem please ?
Regards, -- CHEVALIER Patrick - OWI tél: +33 (0)1 42 68 28 12
collections { group { name: "elm/layout/application/elegance"; parts { part { name: "elegance.bg"; type: RECT; description { state: "default" 0.0; color: 0 0 255 255; rel1 { relative: 0 0; } rel2 { relative: 1 1; } } } part { name: "view.bg"; type: RECT; description { state: "default" 0.0; color: 0 60 60 255; rel1 { to: "elm.swallow.view"; relative: 0 0; } rel2 { to: "elm.swallow.view"; relative: 1 1; } } } part { name: "elm.swallow.view"; type: SWALLOW; description { state: "default" 0.0; rel1 { to_x: "elm.swallow.left_panel"; to_y: "elm.swallow.top_panel"; relative: 1.0 1.0; } rel2 { to_x: "elm.swallow.right_panel"; to_y: "elm.swallow.bottom_panel"; relative: 0.0 0.0; } } } part { name: "elm.swallow.top_panel"; type: SWALLOW; description { state: "default" 0.0; rel1 { relative: 0.20 0; } rel2 { relative: 0.80 0.20; } } description { state: "hide" 0.0; rel1 { relative: 0.2 -0.20; } rel2 { relative: 0.8 0; } } } part { name: "button_top"; type: EXTERNAL; source: "elm/button"; description { state: "default" 0.0; align: 0.5 0; max: 48 32; rel1 { to_y: "elm.swallow.top_panel"; relative: 0 1; } rel2 { relative: 1 1; } } description { state: "hide" 0.0; inherit: "default" 0.0; rel1 { to_x: "elm.swallow.left_panel"; to_y: "elm.swallow.top_panel"; relative: 1 1; } rel2 { relative: 1 1; } } } part { name: "elm.swallow.bottom_panel"; type: SWALLOW; description { state: "default" 0.0; rel1 { relative: 0.2 0.8; } rel2 { relative: 0.8 1.0; } } description { state: "hide" 0.0; rel1 { to_x: "elm.swallow.left_panel"; relative: 1.0 1.0; } rel2 { to: "elm.swallow.right_panel"; relative: 0.0 1.2; } } } part { name: "test_rect"; type: RECT; description { state: "default" 0.0; color: 255 0 0 128; rel1 { to: "elm.swallow.bottom_panel"; } rel2 { to: "elm.swallow.bottom_panel"; } } } part { name: "button_bottom"; type: EXTERNAL; source: "elm/button"; description { state: "default" 0.0; align: 0.5 1; max: 48 32; rel1 { relative: 0 0; } rel2 { to_y: "elm.swallow.bottom_panel"; relative: 1 0; } } description { state: "hide" 0.0; inherit: "default" 0.0; rel1 { to_x: "elm.swallow.left_panel"; relative: 1 0; } rel2 { to_y: "elm.swallow.bottom_panel"; relative: 1 0; } } } part { name: "elm.swallow.right_panel"; type: SWALLOW; description { state: "default" 0.0; rel1 { relative: 0.80 0.0; } rel2 { relative: 1.0 1.0; } } description { state: "hide" 0.0; rel1 { relative: 1.0 0.0; } rel2 { relative: 1.2 1.0; } } } part { name: "button_right"; type: EXTERNAL; source: "elm/button"; description { state: "default" 0.0; align: 1 0.5; max: 32 48; rel1 { relative: 0 0; } rel2 { to_x: "elm.swallow.right_panel"; relative: 0 1; } } description { state: "hide" 0.0; inherit: "default" 0.0; rel2.relative: 1 1; } } part { name: "elm.swallow.left_panel"; type: SWALLOW; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; } rel2 { relative: 0.2 1; } } description { state: "hide" 0.0; rel1 { relative: -0.2 0; } rel2 { relative: 0 1; } } } part { name: "button_left"; type: EXTERNAL; source: "elm/button"; description { state: "default" 0.0; align: 0 0.5; max: 32 48; rel1 { to_x: "elm.swallow.left_panel"; relative: 1 0; } rel2 { relative: 1 1; } } } part { name: "test_rect2"; type: RECT; mouse_events: 0; description { state: "default" 0.0; color: 0 255 0 128; rel1 { to: "elm.swallow.view"; relative: 0 0; } rel2 { to: "elm.swallow.view"; relative: 1 1; } } } } programs { program { name: "hide_right_panel"; signal: "mouse,clicked,*"; source: "button_right"; filter: "elm.swallow.right_panel" "default"; action: STATE_SET "hide" 0.0; transition: ACCELERATE 0.3; target: "elm.swallow.right_panel"; target: "button_top"; target: "button_bottom"; } program { name: "show_right_panel"; signal: "mouse,clicked,*"; source: "button_right"; filter: "elm.swallow.right_panel" "hide"; action: STATE_SET "default" 0.0; transition: ACCELERATE 0.3; target: "elm.swallow.right_panel"; target: "button_top"; target: "button_bottom"; } program { name: "hide_bottom_panel"; signal: "mouse,clicked,*"; source: "button_bottom"; filter: "elm.swallow.bottom_panel" "default"; action: STATE_SET "hide" 0.0; transition: ACCELERATE 0.3; target: "elm.swallow.bottom_panel"; } program { name: "show_bottom_panel"; signal: "mouse,clicked,*"; source: "button_bottom"; filter: "elm.swallow.bottom_panel" "hide"; action: STATE_SET "default" 0.0; transition: ACCELERATE 0.3; target: "elm.swallow.bottom_panel"; } program { name: "hide_top_panel"; signal: "mouse,clicked,*"; source: "button_top"; filter: "elm.swallow.top_panel" "default"; action: STATE_SET "hide" 0.0; transition: ACCELERATE 0.3; target: "elm.swallow.top_panel"; } program { name: "show_top_panel"; signal: "mouse,clicked,*"; source: "button_top"; filter: "elm.swallow.top_panel" "hide"; action: STATE_SET "default" 0.0; transition: ACCELERATE 0.3; target: "elm.swallow.top_panel"; } program { name: "hide_left_panel"; signal: "mouse,clicked,*"; source: "button_left"; filter: "elm.swallow.left_panel" "default"; action: STATE_SET "hide" 0.0; transition: ACCELERATE 0.3; target: "elm.swallow.left_panel"; } program { name: "show_left_panel"; signal: "mouse,clicked,*"; source: "button_left"; filter: "elm.swallow.left_panel" "hide"; action: STATE_SET "default" 0.0; transition: ACCELERATE 0.3; target: "elm.swallow.left_panel"; } } } }
elegance.edj
Description: Binary data
------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel