bilcan Posted January 3, 2017 Share Posted January 3, 2017 Merhaba, Mainform un layout nu Fit olarak ayarlayıp programı çalıştırdığımda mainform browser ı küçültüp büyüttüğümde formun şekli sabit kalıyor? Örneklere baktım ve TUniFrame kullanıldığını gördüm, formun layout özelliğinin bir anlamı yok mu? Quote Link to comment Share on other sites More sharing options...
mhmda Posted January 3, 2017 Share Posted January 3, 2017 The 'Layout' is for Form's children (panel, button...) If you want to make your app responsive then do this: 1. In 'ServerModule' -> 'MainFormDisplayMode' = mfPage. 2. In 'MainForm': 'AlignmentControl' = uniAlignmentClient. 'Layout' = fit. Leave it without any controls (empty). 3. When you want to display a form then display it inside the 'MainForm': frmAdminDashboard.Parent:=MainForm; frmAdminDashboard.Show(); 4. In the displayed form: 'AlignmentControl' = uniAlignmentClient. 'Layout' = ? (as you design the form: vbox, hbox...) You may consider remove the border. Don't change any other property beside those I mentioned above. You must understand the Extjs layout before using it, and please at least make a mockup design for your app (forms) before start coding. There is many samples in unigui directory and you can use this link http://docs.sencha.com/extjs/4.2.1/extjs-build/examples/layout-browser/layout-browser.html Quote Link to comment Share on other sites More sharing options...
bilcan Posted January 3, 2017 Author Share Posted January 3, 2017 Hi, thank you for the answe. Can I ask another question? How can I get Browser's usable areas width and height. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 4, 2017 Administrators Share Posted January 4, 2017 UniApplication.ScreenWidth UniApplication.ScreenHeight Quote Link to comment Share on other sites More sharing options...
bilcan Posted January 4, 2017 Author Share Posted January 4, 2017 UniApplication.ScreenWidth UniApplication.ScreenHeight Merhaba, bu mevcut kullanım alanının ölçülerini veriyor. Browser tam ekranmış gibi boyut almak mümkün mü? 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.