Recent

Author Topic: LAMW : dosent macth wiht form ??  (Read 1936 times)

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
LAMW : dosent macth wiht form ??
« on: March 13, 2017, 09:08:35 am »
Hi
i create a project whit LAMW.
i put 2 jPanels and a buuton in panel1.
i want when my device rotated , the width and height set corectly.
i use this topic and write this code :
Code: Pascal  [Select][+][-]
  1.     jPanel1.ResetAllRules;
  2.     jPanel2.ResetAllRules;
  3.     jPanel3.ResetAllRules;
  4.     jPanel4.ResetAllRules;
  5.  
  6.     Self.UpdateLayout;
  7.  

but the panel just chenge corect and width and heigth button dosen't chenged.
how can i change width and heigth all element in my form when my device rotated ??
thank alot
« Last Edit: March 13, 2017, 09:12:35 am by majid.ebru »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: LAMW : dosent macth wiht form ??
« Reply #1 on: March 14, 2017, 02:39:02 am »

You can learn more about rotate from "demos/GUI" folder example: "AppPanelRotateDemo1"  and
"AppCameraDemo"

[NOTE: jPanel is the base  for  LAMW rotate support]
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018