Jump to content

Recommended Posts

Posted

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?

Posted

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

Posted

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ü? 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...