Recent

Author Topic: [SOLVED] Problems with the positioning of controls in a multi-field form  (Read 1495 times)

maurobio

  • Hero Member
  • *****
  • Posts: 640
  • Ecology is everything.
    • GitHub
Dear ALL,

I am developing an app using LAMW that has just one form with a spinner control, an imageviewer, and several textviewer and edit controls (see the attached image).

Needless to say, I have had problems getting the controls aligned. I followed the instructions from here: https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/docs/GUIDesignWYSIWYG.md, but they cover just a very simple case (one textviewer, one edit control and one button) and therefore I did not find it much helpful.

I also followed the Contact Manager LAMW demo, which was much more helpful, but even anchoring the controls as shown in the demo (ie, with each control anchored to the previous one) I could not get anything right. The interface of this demo is in fact fairly similar to that of my app, except that I have a different disposition of the controls in my form.

Could someone out there give a hand with getting the controls in this form right? I attach my project files for your perusal.

Thanks in advance!

With best regards,
« Last Edit: June 16, 2023, 01:58:26 pm by maurobio »
UCSD Pascal / Burroughs 6700 / Master Control Program
Delphi 7.0 Personal Edition
Lazarus 3.8 - FPC 3.2.2 on GNU/Linux Mint 19.1/20.3, Windows XP SP3, Windows 7 Professional, Windows 10 Home

Mongkey

  • Sr. Member
  • ****
  • Posts: 451
Re: Problems with the positioning of controls in a multi-field form
« Reply #1 on: June 16, 2023, 03:38:46 am »
you have to try another method not laying your all control on 1 panel, LAMW on android 10 had panel child control anchoring problem i think, this problem disappear if you use android 9 or 12,13

thank you.

maurobio

  • Hero Member
  • *****
  • Posts: 640
  • Ecology is everything.
    • GitHub
Re: Problems with the positioning of controls in a multi-field form
« Reply #2 on: June 16, 2023, 12:34:18 pm »
Hi, @Mongkey,

Quote
you have to try another method not laying your all control on 1 panel, LAMW on android 10 had panel child control anchoring problem i think, this problem disappear if you use android 9 or 12,13

What "other method"? Please elaborate. I have the same problem (ie, all controls overlapping) in both Android 10 and 5.5. On the other side, the LAMW "Contact Manager" demo works well in both.

Regards,
UCSD Pascal / Burroughs 6700 / Master Control Program
Delphi 7.0 Personal Edition
Lazarus 3.8 - FPC 3.2.2 on GNU/Linux Mint 19.1/20.3, Windows XP SP3, Windows 7 Professional, Windows 10 Home

maurobio

  • Hero Member
  • *****
  • Posts: 640
  • Ecology is everything.
    • GitHub
Re: Problems with the positioning of controls in a multi-field form
« Reply #3 on: June 16, 2023, 01:58:03 pm »
Dear ALL,

With a little bit of patience and some trial-and-error, I got it working fine!  ;)

Therefore I will mark this question as SOLVED.

Thank you!
UCSD Pascal / Burroughs 6700 / Master Control Program
Delphi 7.0 Personal Edition
Lazarus 3.8 - FPC 3.2.2 on GNU/Linux Mint 19.1/20.3, Windows XP SP3, Windows 7 Professional, Windows 10 Home

maurobio

  • Hero Member
  • *****
  • Posts: 640
  • Ecology is everything.
    • GitHub
Dear ALL,

Although I have already marked this question as SOLVED, here am I again to present the results of my efforts of the last few days in developing a multi-field Android app using LAWM.

It is not a study in beauty, but it has the intended functionality and demonstrates a few interesting features. I am not entirely satisfied with the disposition of the components on the form, especially the lack of spaces between the rows of components. Anyway, this is just an experiment for the development of a similar, but more 'serious' and sophisticated scientific app with more or less the same look-and-feel.

The full source code is attached. I will appreciate any cosmetic and/or functional improvements.

With warmest regards,
UCSD Pascal / Burroughs 6700 / Master Control Program
Delphi 7.0 Personal Edition
Lazarus 3.8 - FPC 3.2.2 on GNU/Linux Mint 19.1/20.3, Windows XP SP3, Windows 7 Professional, Windows 10 Home

 

TinyPortal © 2005-2018