Recent

Author Topic: LCL-CustomDrawn substitutes LCL-Android  (Read 83525 times)

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: LCL-CustomDrawn substitutes LCL-Android
« Reply #75 on: January 24, 2012, 11:44:29 am »
The bug report is no longer needed, I implemented text color in rev 34893

wcleyton

  • Jr. Member
  • **
  • Posts: 80
Re: LCL-CustomDrawn substitutes LCL-Android
« Reply #76 on: January 24, 2012, 11:49:48 am »
Hi felipe,

Added the Bug: 0021144.

Then I saw that you had already corrected.  :-[
 
Thank you

wcleyton

  • Jr. Member
  • **
  • Posts: 80
Re: LCL-CustomDrawn substitutes LCL-Android
« Reply #77 on: January 26, 2012, 11:33:08 am »
Hi,

 When I add a USES clause in the code, the example no longer runs on the emulator.

 For example, I added only in the USES Unit DBF (wanted to do a test with DBF files).

 interface

 uses
   Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs,
   LCLProc, Arrow, StdCtrls, ComCtrls, LCLType, LCLIntf, InterfaceBase, DBF;

 When I run the example on the emulator, nothing appears. logcat appears in:

 I / lclapp (273): Trying to load liblclapp.so
 D / dalvikvm (273): Trying to load lib / data / data / com.pascal.lcltest / lib / liblclap
 p.so 0x44ede248
 I / lclapp (273): [FORMS.PP] ExceptionOccurred
 I / lclapp (273): = Sender Exception
 I / lclapp (273): Exception = Unknown Run-Time error: 202
 I / lclapp (273): Stack trace:
 I / lclapp (273): $ 810E6B84
 I / lclapp (273): Unknown TApplication.HandleException Run-Time error: 202
 I / lclapp (273): Stack trace:
 I / lclapp (273): $ 810E6B84
 D / Zygote (33): Process 273 exited cleanly (217)

 If I remove the unit's USES DBF and compile the example runs normally.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: LCL-CustomDrawn substitutes LCL-Android
« Reply #78 on: January 26, 2012, 11:46:35 am »
Run-Time error 202 is Stack Overflow: http://www.freepascal.org/docs-html/user/userap4.html

Very strange, it looks like that DBF was not properly tested in the ARM processor. Maybe it has a too long recursion or something like that...

wcleyton

  • Jr. Member
  • **
  • Posts: 80
Re: LCL-CustomDrawn substitutes LCL-Android
« Reply #79 on: January 26, 2012, 12:30:43 pm »
I had this problem when running the example without any changes and realized I was with the option (Stack)-Ct enabled.

Disabling this option runs the example-Ct.

I did another test. Unit removed the DBF and just added a DataSource. The example also does not run on emulator.

Do I have to recompile the libraries with this option lazarus-Ct?

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: LCL-CustomDrawn substitutes LCL-Android
« Reply #80 on: January 26, 2012, 12:52:10 pm »
No idea, you should start a new thread to discuss this topic. Maybe a fpc developer will know more about this.

LA.Center

  • Full Member
  • ***
  • Posts: 244
    • LA.Center
Re: LCL-CustomDrawn substitutes LCL-Android
« Reply #81 on: January 27, 2012, 10:10:07 pm »
hi felipemdc, I just downloaded your VirtualBox Image, can you please share the sudo password, I need to map a shared drive.

Also, is there a list of components that are supported by LCL Android?

Very well done, like I always say, you the man :)

PS: I just read in a other thread that custom draw controls with themed paiting, can we apply android painting to LCLAndroid?
« Last Edit: January 27, 2012, 10:31:54 pm by plusplus »

mdalacu

  • Full Member
  • ***
  • Posts: 233
    • dmSimpleApps
Re: LCL-CustomDrawn substitutes LCL-Android
« Reply #82 on: January 30, 2012, 07:04:11 am »
The password is 'root'.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: LCL-CustomDrawn substitutes LCL-Android
« Reply #83 on: January 30, 2012, 07:27:28 am »
thanks =)

Also, is there a list of components that are supported by LCL Android?

http://wiki.lazarus.freepascal.org/Roadmap

Quote
PS: I just read in a other thread that custom draw controls with themed paiting, can we apply android painting to LCLAndroid?

Android painting is not finished yet, so I think it won't be very helpful in the current stage. But for your information, other drawers are currently in the components/customdrawn package, so just add this package as a requirement for your project, add any drawers that you want to try to your uses clause and then in the beginning of the application set the DefaultDrawer (or similar name of a variable from customdrawndrawers.pas) to the desired value.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: LCL-CustomDrawn substitutes LCL-Android
« Reply #84 on: January 30, 2012, 08:09:25 am »
I am locking this topic because it is getting too much of a mess, please ask questions in separate topics in the Android sub-section of the forum.

 

TinyPortal © 2005-2018