FGSIST Posted December 1, 2008 Report Share Posted December 1, 2008 Olá pessoal tem como maximizar uma dialog dentro de uma window MDI tipo uma MDICHILD? Quando tento maximizar normalmente usando o Activate oDlg on init oDlg:maximize() a tela abre mas a minha dialog definida no pelles fica pequena. Tem como maximizar tudo junto? Fico no aguardo. Abraços Gilson E-mail: Fgsistem@yahoo.com.br MSN: fgsistem@hotmail.com Clipper 5.3 / Fw 2.6 / BLINKER 7.0 / WORKSHOP 4.5 / Fwh 2.6 / Harbour 0.45 / Bcc 5.6 / Ads 8.0 / PellesC / Quote Link to comment Share on other sites More sharing options...
FGSIST Posted December 1, 2008 Author Report Share Posted December 1, 2008 Olá pessoal tem como maximizar uma dialog dentro de uma window MDI tipo uma MDICHILD? Quando tento maximizar normalmente usando o Activate oDlg on init oDlg:maximize() a tela abre mas a minha dialog definida no pelles fica pequena. Tem como maximizar tudo junto? Fico no aguardo. Abraços Gilson E-mail: Fgsistem@yahoo.com.br MSN: fgsistem@hotmail.com Clipper 5.3 / Fw 2.6 / BLINKER 7.0 / WORKSHOP 4.5 / Fwh 2.6 / Harbour 0.45 / Bcc 5.6 / Ads 8.0 / PellesC / Quote Link to comment Share on other sites More sharing options...
FGSIST Posted December 1, 2008 Author Report Share Posted December 1, 2008 E aà alguém já passou por isso? Tem alguma forma de fazer? Abraços Gilson E-mail: Fgsistem@yahoo.com.br MSN: fgsistem@hotmail.com Clipper 5.3 / Fw 2.6 / BLINKER 7.0 / WORKSHOP 4.5 / Fwh 2.6 / Harbour 0.45 / Bcc 5.6 / Ads 8.0 / PellesC / Quote Link to comment Share on other sites More sharing options...
Guest n/a Posted December 4, 2008 Report Share Posted December 4, 2008 posta um print screen ai pra nois ver ^^ [X]Harbour 1.1.0|Fwh 8.5|Bcc55|Pelles|MySQL ^^ Quote Link to comment Share on other sites More sharing options...
Guest n/a Posted December 4, 2008 Report Share Posted December 4, 2008 Veja se isso te ajuda ^^ citação:#include "FiveWin.ch" extern Set static oWnd function Main() local oBar DEFINE WINDOW oWnd FROM 1, 1 To 22, 75 TITLE "TESTE com MDI :P" MDI DEFINE BUTTONBAR oBar OF oWnd DEFINE BUTTON OF oBar ACTION CreateChild() ACTIVATE WINDOW oWnd return nil function CreateChild() local oWndChild, oIcon local oBar local cName := "Hello" DEFINE ICON oIcon RESOURCE "test" DEFINE WINDOW oWndChild MDICHILD OF oWnd ICON oIcon DEFINE BUTTONBAR oBar OF oWndChild DEFINE BUTTON OF oBar ACTION oWndChild:End() oWndChild:maximize() ACTIVATE WINDOW oWndChild VALID MsgYesNo( "Fechar () ?" ) return nil id=quote>id=quote>[X]Harbour 1.1.0|Fwh 8.5|Bcc55|Pelles|MySQL ^^ Quote Link to comment Share on other sites More sharing options...
Naruto uZumaki Posted December 4, 2008 Report Share Posted December 4, 2008 citação:Veja se isso te ajuda ^^ citação:#include "FiveWin.ch" extern Set static oWnd function Main() local oBar DEFINE WINDOW oWnd FROM 1, 1 To 22, 75 TITLE "TESTE com MDI :P" MDI DEFINE BUTTONBAR oBar OF oWnd DEFINE BUTTON OF oBar ACTION CreateChild() ACTIVATE WINDOW oWnd return nil function CreateChild() local oWndChild, oIcon local oBar local cName := "Hello" DEFINE ICON oIcon RESOURCE "test" DEFINE WINDOW oWndChild MDICHILD OF oWnd ICON oIcon DEFINE BUTTONBAR oBar OF oWndChild DEFINE BUTTON OF oBar ACTION oWndChild:End() oWndChild:maximize() ACTIVATE WINDOW oWndChild VALID MsgYesNo( "Fechar () ?" ) return nil id=quote>id=quote>[X]Harbour 1.1.0|Fwh 8.5|Bcc55|Pelles|MySQL ^^ id=quote>id=quote>Gilson,no caso voce tem uma janela MDI e ao invez de uma mdichild, voce tem uma DIALOGid=red>, correto ?? Bom , ja analizando o que voce possui, creio que voce teria que pegar as medidas internas dessa janela MDI e mudar o SIZE de sua DIALOG para que ela se enquadre dentro de sua janela MDI... .. como pegar as medidas? não sei mas acabei de ter uma pequena idéia !!!! Acho que existe alguma função que pegue a as medidas de uma janela , WIDTH & HEIGHT , no caso acho que seria possivel um vHEIGHT=-100 Bom foi só uma idéia ____________________________ Eder Xavier Msn:eder_xavier_2@hotmail.com C:\Xharbour Free\fivewin 8.05\workshop\VSX Quote Link to comment Share on other sites More sharing options...
FGSIST Posted December 4, 2008 Author Report Share Posted December 4, 2008 Valeu Lailton Valeu Eder vou testar os exemplos postados por voces e retorno o resultado. Abraços Gilson E-mail: Fgsistem@yahoo.com.br MSN: fgsistem@hotmail.com Clipper 5.3 / Fw 2.6 / BLINKER 7.0 / WORKSHOP 4.5 / Fwh 2.6 / Harbour 0.45 / Bcc 5.6 / Ads 8.0 / PellesC / Quote Link to comment Share on other sites More sharing options...
FGSIST Posted December 4, 2008 Author Report Share Posted December 4, 2008 Valeu pessoal resolvi usando as ideias de voces e essas deste topico aqui http://www.fivewin.com.br/forum/topic.asp?TOPIC_ID=11324 Abraços Gilson E-mail: Fgsistem@yahoo.com.br MSN: fgsistem@hotmail.com Clipper 5.3 / Fw 2.6 / BLINKER 7.0 / WORKSHOP 4.5 / Fwh 2.6 / Harbour 0.45 / Bcc 5.6 / Ads 8.0 / PellesC / Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.