Mehmet Emin Posted May 12, 2020 Posted May 12, 2020 Hi, Back to basics. What exactly ClientHeight does when form's AlignmentControl is uniAlignmentClient? I have my forms with AlignmentControl uniAlignmentClient but just realized that ClientHeight is limiting forms height. Thanks
Mehmet Emin Posted May 12, 2020 Author Posted May 12, 2020 Without setting these two properties I cannot get my forms full screen. procedure TfrmSelectVisitTypem.UnimFormScreenResize(Sender: TObject; AWidth, AHeight: Integer); begin ClientHeight := AHeight; ClientWidth := AWidth; end;
Mehmet Emin Posted May 12, 2020 Author Posted May 12, 2020 This is the only solution I have found to make my forms full screen. function form.resize(sender, info, eOpts) { sender.setStyle('height: 100%'); sender.setStyle('width: 100%'); } Can anyone explain me what I am doing wrong? my AlignmentControl is uniAlignmentClient all components aligned max but the form still respects ClientHeight and ClientWidth without above JS code.
Mehmet Emin Posted May 12, 2020 Author Posted May 12, 2020 1 hour ago, Mehmet Emin said: Without setting these two properties I cannot get my forms full screen. procedure TfrmSelectVisitTypem.UnimFormScreenResize(Sender: TObject; AWidth, AHeight: Integer); begin ClientHeight := AHeight; ClientWidth := AWidth; end; I also realized that the above code does not help all times. Only setting form's style during form.resize helps me.
Abaksoft Posted May 14, 2020 Posted May 14, 2020 On 5/12/2020 at 6:30 PM, Mehmet Emin said: I also realized that the above code does not help all times. Only setting form's style during form.resize helps me. Can you show a print screen ?
Mehmet Emin Posted May 15, 2020 Author Posted May 15, 2020 19 hours ago, Abaksoft said: Can you show a print screen ? I see the content of the previous open form and when I inspect elements I can confirm that form has smaller size. I've been using uniGUI for almost a year but I am still not confident of layouts. May me I should first learn ExtJS. For example today I spent lot of time to make label component with html content to expand and push those other components below for the just dynamic height and found that I can set layoutconfig.height to "auto" I will prepare a test app and attach here. thank you.
Abaksoft Posted May 15, 2020 Posted May 15, 2020 4 hours ago, Mehmet Emin said: I see the content of the previous open form and when I inspect elements I can confirm that form has smaller size. I've been using uniGUI for almost a year but I am still not confident of layouts. May me I should first learn ExtJS. For example today I spent lot of time to make label component with html content to expand and push those other components below for the just dynamic height and found that I can set layoutconfig.height to "auto" I will prepare a test app and attach here. thank you. Great ! You cal also use simply Layout Technic as below : Mobile_Design.7z ReadMe.txt 2
Mehmet Emin Posted May 16, 2020 Author Posted May 16, 2020 11 hours ago, Abaksoft said: You cal also use simply Layout Technic as below : I will use the technic you documented. Thank you very much.
Recommended Posts