Wilton Ergon Posted March 21, 2022 Share Posted March 21, 2022 I need to change the orientation of the panel according to the operating system, if it is windows the panel must collapse to the left, if it is a cell phone it must collapse upwards, it happens that to set this configuration on the panel (ColappeDirection) I can only do this in the form's create, and in this event, I can't get the operating system. --on create procedure TfrmMain.UniFormCreate(Sender: TObject); var C : TUniClientInfoRec; begin C :=UniApplication.ClientInfoRec; if C.OSType<>'windows' then //here in the create event, it does not return the operating system pnlFiltroReport.CollapseDirection :=cdleft; --on show procedure TfrmMain.UniFormShow(Sender: TObject); var C : TUniClientInfoRec; begin C :=UniApplication.ClientInfoRec; if C.OSType<>'windows' then pnlFiltroReport.CollapseDirection :=cdleft; //here in the create event, not change CollapseDirection Link to comment Share on other sites More sharing options...
Sherzod Posted March 22, 2022 Share Posted March 22, 2022 Hello, What alignment are you using? On the server or client side? Link to comment Share on other sites More sharing options...
Wilton Ergon Posted March 22, 2022 Author Share Posted March 22, 2022 panel alingment on client, align alLeft Link to comment Share on other sites More sharing options...
Sherzod Posted March 22, 2022 Share Posted March 22, 2022 21 minutes ago, Wilton Ergon said: panel alingment on client, align alLeft Sorry, do you have a simple testcase!? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now