Control 'Simplegraph' has no parent window (Error)

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

Control 'Simplegraph' has no parent window (Error)

Postby elias » November 17th, 2005, 3:20 pm

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)
elias
Senior Member
Senior Member
 
Posts: 90
Joined: November 8th, 2005, 12:09 pm
Location: Galicia, Spain

Postby lbc » November 18th, 2005, 11:08 am

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
lbc
Junior Member
Junior Member
 
Posts: 48
Joined: February 4th, 2004, 7:50 am
Location: Italy

Postby elias » November 28th, 2005, 3:03 pm

Thanks for helping!
Problem is already solved
elias
Senior Member
Senior Member
 
Posts: 90
Joined: November 8th, 2005, 12:09 pm
Location: Galicia, Spain


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 1 guest

cron