Draggable collapsible container

Flex Add comments

I am working on a component that is going receive some instance and drag it arround and minimize, maximize and close. And also this component (the one that drags) is going to be attached to some other component (its owner), which will propably be a Button, and once you drop this container over its owner, it will close. Much like the menus on eclipse and Flex Builder.

The first part is this thing, which could be released alone.

So, I didn’t want to use MDI (nothing against it, really, great code, but too many features…), and plus I didn’t got the idea behind the DragManager. Why do I have to share an action between two objetcs (the dragEnter event has to be on the target)?

Also take in account that I wanted to do it on my own :P .

So, you can see the result here. View source enabled, of course.
It is pretty simple, in fact. Ah! check also the great link by Hasseg: Collapsible Panel Component for Flex

And it was built over Cairngorm :) It really makes your life easier… Big fan.

/***********************************/

Estou trabalhando num componente que vai recerb uma instância de outro componente e arrastar, minimizar, maximizar e fechar.
E também esse componente (o que arrasta) vai estar atachado a outro componente (seu dono), que provavelmente será um Button, e quando você
largar o componente sobre ele ele vai fechar. Bem parecido com os menus que tem no Eclipse e no Flex Builder.
A primeira parte é essa aqui, que pode ser lançada sozinha.

Então, eu não usei MDI (nada contra, grande código, mesmo, mas tem mutas funcionalidades…), e depois eu não entendi a idéia do DragManager.
Porque eu tenho que dividir uma ação entre dois objetos (o evento DragEnter tem que estar no alvo)?

Também considere que eu queria fazer isso sozinha :P

Então, você pode ver o resultado aqui. Com viewsource habilitado, é claro.É bem simples, na verdade. Ah! veja também esse grande link do Hasseg: Collapsible Panel Component for Flex

E foi construído com Cairgorm :) Ele realmente simplifica a vida… Sou uma grande fã.

2 Responses to “Draggable collapsible container”

  1. Rui Says:

    Isso é porreiro para fazer barra de farramentas suspensas :)

    posso usar isso num projecto comercial?

    obrigado,
    rui

  2. gabrielaperry Says:

    Pode, lógico…
    Estou usando ele, na verdade… Se eu achar algum problema eu aviso.
    Só cuida as palavras que eu sou uma pessoa muito sensível :0P

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in