Kambiz wrote:I think this issue was discussed in another thread. As the result, in the next release the ParentFont property does not exist.
myNode:= mySG.InsertNode(myRect, TRectangularNode);
myNode.Text:= 'Hello World';
myFont:= TFont.Create;
myFont.Name:= mySG.Font.Name;
myFont.Size:= mySG.Font.Size;
// .... goes like this for some more mySG.Font preperties
myNode.Font:= myFont;
myFont.Free;
Kambiz wrote:For sure the initial font would be the control's font.
Thanks for the tipKambiz wrote:In the other hand, to assign a font to another font object, use Assign method.
myFont:= TFont.Create;
myFont.Assign(mySG.Font);
myNode.Font:= myFont;
myFont.Free;
myFont:= TFont.Create;
myFont.Assign(mySG.Font);
myNode.Font.Assign(myFont);
myFont.Free);
myNode.Font.Assign(mySG.Font);
Return to DELPHI AREA Projects
Users browsing this forum: No registered users and 20 guests