Jump to content

What is the effect of ClientHeight if AlignmentControl is uniAlignmentClient?


Mehmet Emin

Recommended Posts

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;
 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

×
×
  • Create New...