Jump to content

Recommended Posts

Posted

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

Posted

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;
 

Posted

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.

Posted
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.

 

Posted

 

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 ?

Posted
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.

Posted
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

1.png

  • Like 2
×
×
  • Create New...