LAMW :Self.UpdateLayout error lazarus / 43-Android ---------------------------------------------------------------------- majid.ebru · 2017-04-13 05:39 Hi i open "AppActionBarTabDemo1" program and i just (only) add "Self.UpdateLayout" in "procedure TAndroidModule1.AndroidModule1JNIPrompt" then i build it. but when i run it , it hanged and close? what? . also when i add "Self.UpdateLayout" in"procedure TAndroidModule1.AndroidModule1Rotate".it hanged!? help ---------------------------------------------------------------------- jmpessoa · 2017-04-13 06:28 It is not intended to be a finished product..... [In fact,  meets only the concept/tutorial one wants to demonstrate .... ] ---------------------------------------------------------------------- majid.ebru · 2017-04-13 07:45 !?! i buidl a project and put an actionbar and some button in panel. when i rotate my phone the width of all button not changed. mr "jmpessoa" siad in here that we should add "jPanel12.ResetAllRules;" and "Self.UpdateLayout;" but it dosen't work how can i fix it ? ---------------------------------------------------------------------- majid.ebru · 2017-04-13 10:39 when i put a "jActionBarTab1" in form and rotate my phone  ,but  "Self.UpdateLayout" code dosen't work correctly and app hanged?!?! . in an other project ,i put "jscrollview" and some "jbutton" then rotate my phone but "Self.UpdateLayout" code dosen't work correctly ?!?! . i think this is a bug?!?! . can you check it,please ---------------------------------------------------------------------- jmpessoa · 2017-04-13 21:19 Quote.....i think this is a bug?!?! Yes. it's a possibility! but,  you can learn more about rotate from "demos/GUI" folder example: "AppPanelRotateDemo1"  and "AppCameraDemo" ---------------------------------------------------------------------- majid.ebru · 2017-04-14 12:19 ok i read and build "AppPanelRotateDemo1"  and "AppCameraDemo". but they are very Primary and they just have 2 element(jPanel) for rotate ?!? . in my app i have many jPanels and jScrollview and jtextview and ..... . when i use many elements , the rotate proceduer dose'nt work corectlly  . ---------------------------------------------------------------------- jmpessoa · 2017-04-14 14:33 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i .... i have many jPanels  Please, send me a draft [just panels!] with vertical and horizontal layout you need .... ---------------------------------------------------------------------- majid.ebru · 2017-04-17 08:29 Hi . How can i Implementation and Layout and design samples ? . is layout of sample 2 true? ---------------------------------------------------------------------- majid.ebru · 2017-04-17 08:39 For Sample 2 : Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i ..jPanel2.PosRelativeToParent := [rpLeft];.. . . . How can i aling Top jPanel3?? Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i ..jPanel3.Anchor := jPanel2; jPanel3.PosRelativeToAnchor := [raToRightOf,raAlignBaseline, ?? ] //How can i aling Top jPanel3??.. . . Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i ..jPanel4.Anchor := jPanel3; jPanel4.PosRelativeToAnchor := [raBelow];..jPanel5.Anchor := jPanel4; jPanel5.PosRelativeToAnchor := [raBelow];..jPanel6.Anchor := jPanel5; jPanel6.PosRelativeToAnchor := [raBelow];. ---------------------------------------------------------------------- majid.ebru · 2017-04-17 08:40 How can i layout and aling sample 5? . red area layout and aling ?!? . yellow ares is very important!?! . . ---------------------------------------------------------------------- ----------------------- How can i layout and aling sample 3? . . ---------------------------------------------------------------------- ----------------------- Sample 1 is very important becuease when i rotate my phone,then all layout changed?!?! . . Thank you alot ---------------------------------------------------------------------- majid.ebru · 2017-04-20 12:57 Hi doesn't any idea? ---------------------------------------------------------------------- jmpessoa · 2017-04-21 00:48 What about a new logic design? Many jPanels Implies a very difficult programming logic!