Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: TBitmap in AppMethod - where?


This question is answered.


Permlink Replies: 2 - Last Post: Jul 2, 2014 12:42 PM Last Post By: Michael Leahy
Michael Leahy

Posts: 239
Registered: 5/9/07
TBitmap in AppMethod - where?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 2, 2014 10:44 AM
Migrating code from XE4 to AppMethod

In XE4, FMX.Types contains:

type
TBitmap = class;


In AppMethod the same code using FMX.Types gives "undeclared Identifier: TBitmap"

I have a trial version of AppMethod which evidently doesn't come with source for Firemonkey.

What changed in AppMethod Delphi in regard to TBitmap?
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: TBitmap in AppMethod - where?
Correct
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 2, 2014 11:11 AM   in response to: Michael Leahy in response to: Michael Leahy
Michael wrote:

What changed in AppMethod Delphi in regard to TBitmap?

TBitmap was moved to the FMX.Graphics unit in XE5, and was documented as
such:

http://docwiki.embarcadero.com/RADStudio/XE5/en/What%27s_New_in_Delphi_and_C%2B%2BBuilder_XE5#Refactoring_in_FireMonkey_XE5

Some refactoring has occurred in the FireMonkey libraries.

For example, TBitmap has moved from FMX.Types (in XE4) to FMX.Graphics (in
XE5). Thus, you will now need to add FMX.Graphics to the uses list for any
of your existing applications that use TBitmap. Similar changes are required
for any other controls that were moved to another unit.

For more information, see FireMonkey Refactoring in XE5.

Also see:

http://docwiki.embarcadero.com/RADStudio/XE5/en/FireMonkey_Refactoring_in_XE5

--
Remy Lebeau (TeamB)
Michael Leahy

Posts: 239
Registered: 5/9/07
Re: TBitmap in AppMethod - where?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 2, 2014 12:42 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Remy Lebeau (TeamB) wrote:
Michael wrote:

What changed in AppMethod Delphi in regard to TBitmap?

TBitmap was moved to the FMX.Graphics unit in XE5, and was documented as
such:

http://docwiki.embarcadero.com/RADStudio/XE5/en/What%27s_New_in_Delphi_and_C%2B%2BBuilder_XE5#Refactoring_in_FireMonkey_XE5

Some refactoring has occurred in the FireMonkey libraries.

For example, TBitmap has moved from FMX.Types (in XE4) to FMX.Graphics (in
XE5). Thus, you will now need to add FMX.Graphics to the uses list for any
of your existing applications that use TBitmap. Similar changes are required
for any other controls that were moved to another unit.

For more information, see FireMonkey Refactoring in XE5.

Also see:

http://docwiki.embarcadero.com/RADStudio/XE5/en/FireMonkey_Refactoring_in_XE5

--
Remy Lebeau (TeamB)

Thank you, Remy!
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02