Recent

Author Topic: TCDButtom select dsAndroid DrawStyle...  (Read 6917 times)

wcleyton

  • Jr. Member
  • **
  • Posts: 80
TCDButtom select dsAndroid DrawStyle...
« on: February 10, 2012, 12:23:50 pm »
Good morning,

When I add a TCDButtom and select dsAndroid DrawStyle in property in design time the button gets the Android appearance.

But when I compile and install the emulator button does not appear with the appearance Android.

This is a bug or is under development? Which class should be changed to fix this?

Thank you for your attention.


felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: TCDButtom select dsAndroid DrawStyle...
« Reply #1 on: February 10, 2012, 02:14:53 pm »
Did you add the package customdrawn to your project dependencies and added the unit customdrawn_android to your uses clause?

wcleyton

  • Jr. Member
  • **
  • Posts: 80
Re: TCDButtom select dsAndroid DrawStyle...
« Reply #2 on: February 10, 2012, 03:40:43 pm »
Good afternoon,

 He had added USES customdrawn_android ...

 However, adding this clause, the example does not perform in the Android emulator.

 Attached a picture of what changed in the example androidlcltest:

 1 - Added a CDBottom
 2 - DrawStylt -> dsAndroid
 3 - Added customdrawn_android in USES

 If I change to:

 2 - DrawStylt -> dsWinXP
 3 - Add customdrawn_winxp in USES

 The example compiles and runs on the emulator with the appearance of the button with WinXP.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: TCDButtom select dsAndroid DrawStyle...
« Reply #3 on: February 10, 2012, 04:52:28 pm »
Could you show how the android and winxp styles look like in the emulator?

Maybe the Pixels[] property isn't yet implemented. It should be very easy to add it, I can check that monday.

wcleyton

  • Jr. Member
  • **
  • Posts: 80
Re: TCDButtom select dsAndroid DrawStyle...
« Reply #4 on: February 10, 2012, 05:47:36 pm »
Hi Felipe,

 Here are two pictures with such a style button running WinXP.

 Grateful for the attention;

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: TCDButtom select dsAndroid DrawStyle...
« Reply #5 on: February 13, 2012, 11:28:33 am »
Oh crap, it is a misterious crash with TBitmap which has been plaguing me for some time and appears in some cases ... it will require a lot of effort to fix. Please open a bug report.

wcleyton

  • Jr. Member
  • **
  • Posts: 80
Re: TCDButtom select dsAndroid DrawStyle...
« Reply #6 on: February 13, 2012, 12:46:33 pm »
Good morning,

 I opened the Bug Report 0021274. For now I use WinXP style.

 Thank you for your attention.

 

TinyPortal © 2005-2018