Page 1 of 1

Control 'Simplegraph' has no parent window (Error)

PostPosted: November 17th, 2005, 3:20 pm
by elias
Control 'Simplegraph' has no parent window
I have Tsimplegraph modified to work in my application, but, at times, when closing, Delphi send me this Error. Any idea about what is happenig?.

This is what i read in Call Stack
    TSimpleGraph.CreateWnd
    MinimizeText(???,???,(0, 0, 32, 32, (0, 0), (32, 32)))
    TGraphNode.GetTextRect
    TGraphNode.CalculateTextParameters(???,???,0)

PostPosted: November 18th, 2005, 11:08 am
by lbc
Hi Elias
maybe it would be helpful to see a snippet of the code you use to create the simplegraph
maybe do you add it dynamically (like creating it in the FormCreate Event) insted of dropping it form the component bar?

generally the "no parent window" error often originates from not having correctly set the Parent property for components created at runtime for example...

hope that helps

PostPosted: November 28th, 2005, 3:03 pm
by elias
Thanks for helping!
Problem is already solved