Valeu Vagner, boa sorte nos projetos ae! Vicente Maciel Junior 2009/4/16 Vagner Mendonça <vagner...@gmail.com>
> Boa tarde Vicente > > Muito obri..gado realmente funciono apos eu importar este swc que vc me > mando e fazer as alterações necessarias, creio que isto vai ajudar muita > gente que estava com mesmo problema do que eu não usar o swc do flexmdi... > > Vlw mesmo pela ajuda... > > AT+ E ABRAÇOS... > 2009/4/16 Vicente Maciel Junior <macie...@gmail.com> > >> O FlexMDI passou a ser atualizado no FlexLib, portanto o FlexLib é mais >> atual. >> Esse SWC que te passei é exatamente o FlexLib 2.4 (que contém muito mais >> do que o MDI, vide: http://code.google.com/p/flexlib), mas contém aquela >> alteração de código no MDIManager para centralizar a janela. >> >> Portanto, SIM, você pode utiliza-lo. Fique atento apenas às referências às >> classes que podem ser diferentes de um para o outro. Não tenho o FlexMDI >> portanto não sei nem te dizer quais seriam as mudanças necessárias e nem SE >> seriam necessárias. >> >> Vicente Maciel Junior >> RiaBrazil - Senior Rich App Developer >> Independent Web Developer & Consultant >> Adobe Advanced Certified Developer >> Adobe Certified Instructor (ColdFusion & Flash Platform) >> +55 71 8120-0035 >> MSN: macie...@gmail.com / Twitter: macieljr >> http://www.riabrazil.com.br >> http://teclandoalto.blogspot.com >> Grupo de usuarios Oficial Adobe RIA-BA: http://bit.ly/ria-ba >> >> >> 2009/4/16 Vagner Mendonça <vagner...@gmail.com> >> >>> Boa tarde Vicente entao posso descosiderar o flexmdi e flexlib e usuar >>> este que vc coloco la flexlib_mdimanagerpatch... >>> >>> ? >>> >>> >>> >>> 2009/4/16 Vicente Maciel Junior <macie...@gmail.com> >>> >>>> Fiz o upload do SWC do FlexLib corrigido quanto a classe MDIManager na >>>> área de arquivos do FlexDev: >>>> http://groups.google.com/group/flexdev/web/flexlib_mdimanagerpatch.swc >>>> >>>> Mas se quiser, usando SVN, você pode obter o source como um projeto do >>>> FlexBuilder: >>>> http://code.google.com/p/flexlib/wiki/FlexBuilderProject (instruções) >>>> >>>> Ai então é só proceder com a modificação sugerida. >>>> >>>> Atenção para as URIs (package path) das classes envolvidas no teste que >>>> eu mandei pra vc: >>>> flexlib.mdi.containers.MDICanvas >>>> flexlib.mdi.containers.MDIWindow >>>> flexlib.mdi.managers.MDIManager (classe a ser modificada) >>>> >>>> Essa correção em breve vai fazer parte do FlexLib original. >>>> >>>> Vicente Maciel Junior >>>> RiaBrazil - Senior Rich App Developer >>>> Independent Web Developer & Consultant >>>> Adobe Advanced Certified Developer >>>> Adobe Certified Instructor (ColdFusion & Flash Platform) >>>> +55 71 8120-0035 >>>> MSN: macie...@gmail.com / Twitter: macieljr >>>> http://www.riabrazil.com.br >>>> http://teclandoalto.blogspot.com >>>> Grupo de usuarios Oficial Adobe RIA-BA: http://bit.ly/ria-ba >>>> >>>> >>>> 2009/4/16 Vagner Mendonça <vagner...@gmail.com> >>>> >>>>> BOM DIA EU ESTAVA USANDO A LIB DO FLEX MDI E NÃO O FLEXLIB 2.4 agora >>>>> como pedria mudar e usar as mesmas funções que usava para o flexmdi.swc >>>>> sendo que eu importo Build Path do meu projeto pois creio que este bug de >>>>> centralizar e problema do swc do flexmdi.swc... >>>>> >>>>> >>>>> 2009/4/16 Vicente Maciel Junior <macie...@gmail.com> >>>>> >>>>>> Vc possui os fontes do FlexLib certo? Senão vc não tem como fazer a >>>>>> modificação que eu sugeri. >>>>>> Aliás, tendo os fontes, fazendo a modificação, é necessário compilar a >>>>>> Lib antes de compilar o seu projeto que consome a lib em questão. >>>>>> >>>>>> Se vc usa o FlexBuilder e associa o "Flex Library Project" no qual vc >>>>>> tem o FlexLib ao Build Path do seu "Flex Project", ele executa essa >>>>>> compilação pra vc (normalmente). >>>>>> >>>>>> >>>>>> Vicente Maciel Junior >>>>>> RiaBrazil - Senior Rich App Developer >>>>>> Independent Web Developer & Consultant >>>>>> Adobe Advanced Certified Developer >>>>>> Adobe Certified Instructor (ColdFusion & Flash Platform) >>>>>> +55 71 8120-0035 >>>>>> MSN: macie...@gmail.com / Twitter: macieljr >>>>>> http://www.riabrazil.com.br >>>>>> http://teclandoalto.blogspot.com >>>>>> Grupo de usuarios Oficial Adobe RIA-BA: http://bit.ly/ria-ba >>>>>> >>>>>> >>>>>> 2009/4/16 Vagner Mendonça <vagner...@gmail.com> >>>>>> >>>>>>> Com mesmo fonte que vc me mando nao centraliza perfeitammente como >>>>>>> neste link pode ser a versao do meu swc, qual seria a lib mais atual do >>>>>>> mdi >>>>>>> disponivel? >>>>>>> >>>>>>> obrigado pelas respostas >>>>>>> >>>>>>> 2009/4/16 Vicente Maciel Junior <macie...@gmail.com> >>>>>>> >>>>>>>> Vagner, >>>>>>>> Desculpe, mas vc deve estar cometendo algum erro... >>>>>>>> >>>>>>>> Simplesmente fazendo aquela modificação e executando o teste abaixo, >>>>>>>> funciona perfeitamente! >>>>>>>> >>>>>>>> Teste: >>>>>>>> http://vpmjr.com.br/downloads/labs/flex/MDIWindowCenterTest.html >>>>>>>> (com o source do teste... bem simples) >>>>>>>> >>>>>>>> Vicente Maciel Junior >>>>>>>> RiaBrazil - Senior Rich App Developer >>>>>>>> Independent Web Developer & Consultant >>>>>>>> Adobe Advanced Certified Developer >>>>>>>> Adobe Certified Instructor (ColdFusion & Flash Platform) >>>>>>>> +55 71 8120-0035 >>>>>>>> MSN: macie...@gmail.com / Twitter: macieljr >>>>>>>> http://www.riabrazil.com.br >>>>>>>> http://teclandoalto.blogspot.com >>>>>>>> Grupo de usuarios Oficial Adobe RIA-BA: http://bit.ly/ria-ba >>>>>>>> >>>>>>>> >>>>>>>> 2009/4/16 Vagner Mendonça <vagner...@gmail.com> >>>>>>>> >>>>>>>>> O codigo que abre a janela esta igual...a função que centraliza se >>>>>>>>> eu colocar como vc me passo da erro.. >>>>>>>>> >>>>>>>>> public function center(window:MDIWindow):void >>>>>>>>> { >>>>>>>>> window.x = this.container.width / 2 - window.width /2; >>>>>>>>> window.y = this.container.height / 2 - window.height /2; >>>>>>>>> } >>>>>>>>> >>>>>>>>> agora se eu colocar no lugar do conteiner mdiCanvas que e o meu >>>>>>>>> conteiner nao da erro >>>>>>>>> o resto do codigo e a mesma coisa nao estou mudando nada nao da >>>>>>>>> erro e so move a janela um poco para o centro maiss nao centraliza... >>>>>>>>> >>>>>>>>> >>>>>>>>> * >>>>>>>>> >>>>>>>>> public >>>>>>>>> **function* center(window:MDIWindow):*void* >>>>>>>>> >>>>>>>>> { >>>>>>>>> >>>>>>>>> window.x = >>>>>>>>> *this*.mdiCanvas.width / 2 - window.width /2; >>>>>>>>> >>>>>>>>> window.y = >>>>>>>>> *this*.mdiCanvas.height / 2 - window.height /2; >>>>>>>>> >>>>>>>>> } >>>>>>>>> >>>>>>>>> >>>>>>>>> 2009/4/16 Vicente Maciel Junior <macie...@gmail.com> >>>>>>>>> >>>>>>>>>> Vagner, >>>>>>>>>> Primeiro mude aquele código que citei na classe MDIManager. Depois >>>>>>>>>> disso, basta vc usar o código que vc estava utilizando antes... >>>>>>>>>> >>>>>>>>>> mdiCanvas.windowManager.addCenter(win_0004); >>>>>>>>>> >>>>>>>>>> O que aquele mudança no código fez foi redefinir a função que o >>>>>>>>>> "windowManager" utiliza internamente para centralizar a janela, ok? >>>>>>>>>> >>>>>>>>>> Vicente Maciel Junior >>>>>>>>>> RiaBrazil - Senior Rich App Developer >>>>>>>>>> Independent Web Developer & Consultant >>>>>>>>>> Adobe Advanced Certified Developer >>>>>>>>>> Adobe Certified Instructor (ColdFusion & Flash Platform) >>>>>>>>>> +55 71 8120-0035 >>>>>>>>>> MSN: macie...@gmail.com / Twitter: macieljr >>>>>>>>>> http://www.riabrazil.com.br >>>>>>>>>> http://teclandoalto.blogspot.com >>>>>>>>>> Grupo de usuarios Oficial Adobe RIA-BA: http://bit.ly/ria-ba >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> 2009/4/16 Vagner Mendonça <vagner...@gmail.com> >>>>>>>>>> >>>>>>>>>>> Boa tarde >>>>>>>>>>> windows seria o nome da minha janela...tipo eu criei como >>>>>>>>>>> win_0004....depois naa função que chama a janela ficaria assim? >>>>>>>>>>> >>>>>>>>>>> public function center(window:MDIWindow):void >>>>>>>>>>> { >>>>>>>>>>> win_0004.x = this.container.width / 2 - win_0004.width /2; >>>>>>>>>>> win_0004.y = this.container.height / 2 - win_0004.height /2; >>>>>>>>>>> } >>>>>>>>>>> >>>>>>>>>>> *var* win_0004:Prog_0004 = *new* Prog_0004(); >>>>>>>>>>> >>>>>>>>>>> mdiCanvas.windowManager.add(win_0004); >>>>>>>>>>> >>>>>>>>>>> mdiCanvas.windowManager.addCenter(win_0004); >>>>>>>>>>> >>>>>>>>>>> seria isto??? >>>>>>>>>>> >>>>>>>>>>> obrigado >>>>>>>>>>> 2009/4/16 Vicente Maciel Junior <macie...@gmail.com> >>>>>>>>>>> >>>>>>>>>>>> No Flexlib em: >>>>>>>>>>>> >>>>>>>>>>>> flexlib.mdi.managers.MDIManager.as<http://flexlib.mdi.managers.mdimanager.as/> >>>>>>>>>>>> >>>>>>>>>>>> Você vai encontrar o método: >>>>>>>>>>>> >>>>>>>>>>>> public function center(window:MDIWindow):void >>>>>>>>>>>> { >>>>>>>>>>>> window.x = this.container.width / 2 - window.width; >>>>>>>>>>>> window.y = this.container.height / 2 - window.height; >>>>>>>>>>>> } >>>>>>>>>>>> >>>>>>>>>>>> Altere para: >>>>>>>>>>>> >>>>>>>>>>>> public function center(window:MDIWindow):void >>>>>>>>>>>> { >>>>>>>>>>>> window.x = this.container.width / 2 - window.width /2; >>>>>>>>>>>> window.y = this.container.height / 2 - window.height /2; >>>>>>>>>>>> } >>>>>>>>>>>> >>>>>>>>>>>> Então o addCenter() vai funcionar centralizando normalmente. >>>>>>>>>>>> >>>>>>>>>>>> Vicente Maciel Junior >>>>>>>>>>>> RiaBrazil - Senior Rich App Developer >>>>>>>>>>>> Independent Web Developer & Consultant >>>>>>>>>>>> Adobe Advanced Certified Developer >>>>>>>>>>>> Adobe Certified Instructor (ColdFusion & Flash Platform) >>>>>>>>>>>> +55 71 8120-0035 >>>>>>>>>>>> MSN: macie...@gmail.com / Twitter: macieljr >>>>>>>>>>>> http://www.riabrazil.com.br >>>>>>>>>>>> http://teclandoalto.blogspot.com >>>>>>>>>>>> Grupo de usuarios Oficial Adobe RIA-BA: http://bit.ly/ria-ba >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> 2009/4/16 Vagner Mendonça <vagner...@gmail.com> >>>>>>>>>>>> >>>>>>>>>>>> coloquei assim mais ele deu so uma movida..não centraliso >>>>>>>>>>>>> total.. >>>>>>>>>>>>> >>>>>>>>>>>>> * >>>>>>>>>>>>> >>>>>>>>>>>>> var >>>>>>>>>>>>> *win_0004:Prog_0004 = *new* Prog_0004(); >>>>>>>>>>>>> >>>>>>>>>>>>> mdiCanvas.windowManager.add(win_0004); >>>>>>>>>>>>> >>>>>>>>>>>>> mdiCanvas.windowManager.addCenter(win_0004); >>>>>>>>>>>>> Tem alguma ideia que pode ser...? >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> 2009/4/16 Alexandre Tavares Farias <fariasalexan...@gmail.com> >>>>>>>>>>>>> >>>>>>>>>>>>> Amigos bom dia, >>>>>>>>>>>>>> Estou com o mesmo problema, fico no aguardo tambem.... >>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> Atenciosamente, >>>>>>>>>>>>>> >>>>>>>>>>>>>> ------------------------------------------------------------ >>>>>>>>>>>>>> NET SOLUTIONS INFORMÁTICA >>>>>>>>>>>>>> ------------------------------------------------------------ >>>>>>>>>>>>>> Alexandre Tavares Farias >>>>>>>>>>>>>> Fortaleza - Ce >>>>>>>>>>>>>> ------------------------------------------------------------- >>>>>>>>>>>>>> www.netsolutions-ce.com.br >>>>>>>>>>>>>> www.ns-ce.com.br >>>>>>>>>>>>>> fariasalexan...@gmail.com >>>>>>>>>>>>>> ------------------------------------------------------------- >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> 2009/4/15 Beto <b...@webinovacoes.com.br> >>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> DZ8 escreveu: >>>>>>>>>>>>>>> > Galera to com um probleminha aqui em usar este tipo de >>>>>>>>>>>>>>> recurso tenho >>>>>>>>>>>>>>> > uma janela em mdi e nao tem jeito de centralizar. >>>>>>>>>>>>>>> > para maximir e tranquilo e para centralizar ela com tamanho >>>>>>>>>>>>>>> normal eu >>>>>>>>>>>>>>> > usei mdicamvas.windowsmaneger.center(); mais não adianto, >>>>>>>>>>>>>>> alguem tem >>>>>>>>>>>>>>> > alguma ideia de como posso fazer isto....obrigado >>>>>>>>>>>>>>> > > >>>>>>>>>>>>>>> > >>>>>>>>>>>>>>> > >>>>>>>>>>>>>>> Vagner, >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Tenta o seguinte: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> mdicanvas.addCenter(mdiWindow); >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>> Atenciosamente, >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Beto >>>>>>>>>>>>>>> +55 61 4063.6303 | 61 8409.1775 >>>>>>>>>>>>>>> Brasília - DF >>>>>>>>>>>>>>> Web Inovações >>>>>>>>>>>>>>> www.webinovacoes.com.br >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>> >>>>>> >>>> >>>> >>>> >>>> >>>> >> >> >> >> >> >> --~--~---------~--~----~------------~-------~--~----~ Você recebeu esta mensagem porque está inscrito na lista "flexdev" Para enviar uma mensagem, envie um e-mail para flexdev@googlegroups.com Para sair da lista, envie um email em branco para flexdev-unsubscr...@googlegroups.com Mais opções estão disponíveis em http://groups.google.com/group/flexdev -~----------~----~----~----~------~----~------~--~---