On Sunday 20 December 2015 09:51:57 Michael Ebner wrote: > Need input: When assigning the Picture in the ObjectInspector, masking > works, if using Face.Image.Source, mask will be ignored. When trying > assigning Picture via source code, I get a Graphic format error. > > Code und Pics: > > http://wiki.freepascal.org/Reference:_MSEgui/TFace#Image > " procedure tmainfo.Button3Execute(const sender: TObject); begin if Button3.Face = nil then Button3.Face := TFace.Create; " This is wrong. There are dedicated procedures in order to activate an optional class property at runtime. Please use " Button3.createface(); " Your code will leak memory.
In order to free an optional class property on runtime write " <theclassproperty>:= nil; " " Button3.Face:= nil; " Martin ------------------------------------------------------------------------------ _______________________________________________ mseide-msegui-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

