M maurizio barbera Member Licensed User Longtime User Feb 20, 2016 #1 Hi, I created a script to adapt the view of the screen. in all ok visual designer, but when I start debugging on the display you see the view out of the screen ... for instance. (I know that the designer does not enter the lower part but my problem is the right side) the code is: lblIP.Top = 5dip lblIP.Left = 5dip lblPort.Top = lblIP.Top + lblIP.Height + 5dip lblPort.Left = lblIP.Left lblUtente.Top = lblPort.Top + lblPort.Height + 5dip lblUtente.Left = lblIP.Left lblPassword.Top = lblUtente.Top + lblUtente.Height + 5dip lblPassword.Left = lblIP.Left lblDBdaUsare.Top = lblPassword.Top + lblPassword.Height + 5dip lblDBdaUsare.Left = lblIP.Left lblDatabase.Top = lblDBdaUsare.Top + lblDBdaUsare.Height + 5dip lblDatabase.Left = lblIP.Left cmdSalva.Top = lblDatabase.Top + lblDatabase.Height + 5dip + 5dip cmdSalva.Left = lblIP.Left cmdTestIP.Top = 5dip cmdTestIP.Left = 100%x - cmdTestIP.Width - 5dip cmdTestIP.Height = txtPassword.Top + txtPassword.Height + 5dip cmdLeggiDB.Top = lblDatabase.Top cmdLeggiDB.Left = cmdTestIP.Left cmdLeggiDB.Height = lstDatabase.Height cmdEsci.Top = cmdSalva.Top cmdEsci.Left = 100%x - cmdEsci.Width - 5dip txtIP.Top = lblIP.Top txtIP.Left = lblIP.Left + lblIP.Width + 5dip txtIP.Width = cmdTestIP.Left - lblIP.Left - lblIP.Width - 10dip txtPort.Top = lblPort.Top txtPort.Left = txtIP.Left txtPort.Width = txtIP.Width txtUtente.Top = lblUtente.Top txtUtente.Left = txtIP.Left txtUtente.Width = txtIP.Width txtPassword.Top = lblPassword.Top txtPassword.Left = txtIP.Left txtPassword.Width = txtIP.Width lblNomeDatabase.Top = lblDBdaUsare.Top lblNomeDatabase.Left = txtIP.Left lblNomeDatabase.Width = txtIP.Width lstDatabase.Top = lblDatabase.Top lstDatabase.Left = txtIP.Left lstDatabase.Width = txtIP.Width Attachments imageDesigner.png 24.1 KB · Views: 578 imageDevice.jpg 213.4 KB · Views: 600
Hi, I created a script to adapt the view of the screen. in all ok visual designer, but when I start debugging on the display you see the view out of the screen ... for instance. (I know that the designer does not enter the lower part but my problem is the right side) the code is: lblIP.Top = 5dip lblIP.Left = 5dip lblPort.Top = lblIP.Top + lblIP.Height + 5dip lblPort.Left = lblIP.Left lblUtente.Top = lblPort.Top + lblPort.Height + 5dip lblUtente.Left = lblIP.Left lblPassword.Top = lblUtente.Top + lblUtente.Height + 5dip lblPassword.Left = lblIP.Left lblDBdaUsare.Top = lblPassword.Top + lblPassword.Height + 5dip lblDBdaUsare.Left = lblIP.Left lblDatabase.Top = lblDBdaUsare.Top + lblDBdaUsare.Height + 5dip lblDatabase.Left = lblIP.Left cmdSalva.Top = lblDatabase.Top + lblDatabase.Height + 5dip + 5dip cmdSalva.Left = lblIP.Left cmdTestIP.Top = 5dip cmdTestIP.Left = 100%x - cmdTestIP.Width - 5dip cmdTestIP.Height = txtPassword.Top + txtPassword.Height + 5dip cmdLeggiDB.Top = lblDatabase.Top cmdLeggiDB.Left = cmdTestIP.Left cmdLeggiDB.Height = lstDatabase.Height cmdEsci.Top = cmdSalva.Top cmdEsci.Left = 100%x - cmdEsci.Width - 5dip txtIP.Top = lblIP.Top txtIP.Left = lblIP.Left + lblIP.Width + 5dip txtIP.Width = cmdTestIP.Left - lblIP.Left - lblIP.Width - 10dip txtPort.Top = lblPort.Top txtPort.Left = txtIP.Left txtPort.Width = txtIP.Width txtUtente.Top = lblUtente.Top txtUtente.Left = txtIP.Left txtUtente.Width = txtIP.Width txtPassword.Top = lblPassword.Top txtPassword.Left = txtIP.Left txtPassword.Width = txtIP.Width lblNomeDatabase.Top = lblDBdaUsare.Top lblNomeDatabase.Left = txtIP.Left lblNomeDatabase.Width = txtIP.Width lstDatabase.Top = lblDatabase.Top lstDatabase.Left = txtIP.Left lstDatabase.Width = txtIP.Width
Erel B4X founder Staff member Licensed User Longtime User Feb 21, 2016 #21 @luca There are two AutoScaleAll calls in your project as well. You have also didn't set the anchors of the views in the middle (which should be set to BOTH). Please let me help @maurizio barbera. Any other designer related questions or issues should be posted in a different thread. Upvote 0
@luca There are two AutoScaleAll calls in your project as well. You have also didn't set the anchors of the views in the middle (which should be set to BOTH). Please let me help @maurizio barbera. Any other designer related questions or issues should be posted in a different thread.
Erel B4X founder Staff member Licensed User Longtime User Feb 21, 2016 #22 Here is the correct implementation. Attachments TestDesigner.zip TestDesigner.zip 5 KB · Views: 386 Upvote 0
LucaMs Expert Licensed User Longtime User Feb 21, 2016 #23 Erel said: There are two AutoScaleAll calls in your project as well. You have also didn't set the anchors of the views in the middle (which should be set to BOTH). Click to expand... Half right. I had not seen the two AutoScaleAll because I thought that they were in a single script. In "my project" central Views are anchored horizontally with BOTH. Upvote 0
Erel said: There are two AutoScaleAll calls in your project as well. You have also didn't set the anchors of the views in the middle (which should be set to BOTH). Click to expand... Half right. I had not seen the two AutoScaleAll because I thought that they were in a single script. In "my project" central Views are anchored horizontally with BOTH.
M maurizio barbera Member Licensed User Longtime User Feb 21, 2016 #24 LucaMs said: But not in mine (#13) Also, I think there is a bug in the Designer (B4A 5.50): Please, compare the project attached in #16 with the one attached here (B4A 4.30) Click to expand... ok ... the project works on both devices without going off the screen Upvote 0
LucaMs said: But not in mine (#13) Also, I think there is a bug in the Designer (B4A 5.50): Please, compare the project attached in #16 with the one attached here (B4A 4.30) Click to expand... ok ... the project works on both devices without going off the screen
LucaMs Expert Licensed User Longtime User Feb 21, 2016 #25 LucaMs said: Also, I think there is a bug in the Designer (B4A 5.50): Please, compare the project attached in #16 with the one attached here (B4A 4.30) Click to expand... There are NO bugs in the Designer 5.50... again two AutoScaleAll. Last edited: Feb 21, 2016 Upvote 0
LucaMs said: Also, I think there is a bug in the Designer (B4A 5.50): Please, compare the project attached in #16 with the one attached here (B4A 4.30) Click to expand... There are NO bugs in the Designer 5.50... again two AutoScaleAll.
Erel B4X founder Staff member Licensed User Longtime User Feb 21, 2016 #26 LucaMs said: There is NO bugs in the Designer 5.50 Click to expand... I know Upvote 0
LucaMs Expert Licensed User Longtime User Feb 21, 2016 #27 Erel said: Please let me help @maurizio barbera. Click to expand... This is wat I tried to do. But I can spend my time in a better way, next time. Last edited: Feb 21, 2016 Upvote 0
Erel said: Please let me help @maurizio barbera. Click to expand... This is wat I tried to do. But I can spend my time in a better way, next time.
M maurizio barbera Member Licensed User Longtime User Feb 21, 2016 #28 Erel said: Here is the correct implementation. Click to expand... This also works ... ultimately I made that will perform a double autoscallall thanks for your help Upvote 0
Erel said: Here is the correct implementation. Click to expand... This also works ... ultimately I made that will perform a double autoscallall thanks for your help