Home > Back-end >  The use of TValue problem
The use of TValue problem

Time:09-24

Environment: XE7 Firemonkey
I made a Style for a Button, and then want to dynamically in the process of assignment to the Style of the property
Like this:
BtnImage - & gt; StylesData [" imagestyle "]=TValue: : the From (" Wnd_Close. PNG ");
But if TBitmap this is wrong, should be TValue: : From not using pointer
Button2 - & gt; StylesData [" circlestyle. The Fill. The Bitmap. The Bitmap "]=TValue: : the From (ImageControl1 - & gt; Bitmap);

But in Delphi is
Button2. StylesData [' circlestyle. The Fill. The Bitmap. The Bitmap '] :=TValue. The From (ImageControl1. Bitmap);
This should be how to deal with?
Validate code under the BCB
  • Related