Lazarus
Home
Forum
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Widgetset
»
CustomDrawn
»
TCDButtom select dsAndroid DrawStyle...
Downloads
Daily Snapshots
FAQ
Wiki
Bugtracker
IRC channel
Developer Blog
Follow us on Twitter
Mailing List
Free pascal
Other languages
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
About donations (wiki)
Bookstore
Lazarus, the complete guide
Search
Advanced search
« previous
next »
Print
Pages: [
1
]
Author
Topic: TCDButtom select dsAndroid DrawStyle... (Read 643 times)
wcleyton
New member
Posts: 33
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.
Logged
felipemdc
Administrator
Hero Member
Posts: 3162
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?
Logged
wcleyton
New member
Posts: 33
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.
Logged
felipemdc
Administrator
Hero Member
Posts: 3162
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.
Logged
wcleyton
New member
Posts: 33
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;
Logged
felipemdc
Administrator
Hero Member
Posts: 3162
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.
Logged
wcleyton
New member
Posts: 33
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.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Widgetset
»
CustomDrawn
»
TCDButtom select dsAndroid DrawStyle...
Recent
StringGrid.LoadFromCSVFil...
by
tedsmith
[
Today
at 11:17:52 pm]
TaChart ternary plot func...
by
ccrause
[
Today
at 10:53:15 pm]
Things went wrong install...
by
garlar27
[
Today
at 10:46:45 pm]
Installing Lazarus/FPC on...
by
Bruce Mayo
[
Today
at 10:21:17 pm]
"Tween" two images
by
TheBlackSheep
[
Today
at 09:38:04 pm]
another bug?
by
circular
[
Today
at 08:36:16 pm]
BGRABitmap 5.7.1 won't co...
by
circular
[
Today
at 08:24:59 pm]
Q about capabilities of t...
by
ludob
[
Today
at 07:39:16 pm]
Cross Compile
by
Leledumbo
[
Today
at 05:23:05 pm]
Stable database?
by
BigChimp
[
Today
at 03:27:28 pm]