Page 1 of 1

Error "Control <name> has no parent window"

PostPosted: 18 Feb 2015 05:01
by mait
I have been previously able to place CGDev JQ components onto my forms. Now when I try to add any of the following components:

TIWCGJQEdit, TIWGCJQButton, TIWCGJQDatePicker, TIWCGJQSlider, TIWCGJQTreeView, and many others, I get the error message:

"Control <name> has no parent window."

Other components, such as:

TIWCGJQLabel, TIWCGJQDialog, TIWCGJQRegion, TIWCGJQCheckBox, TIWCGJQRadioButton and many others, drop onto the form OK.

I can copy and paste an existing label, button, etc. but I can't drop a new one onto the form.

I don't recall doing anything in particular prior to the problem occurring. I have reinstalled IntraWeb and CGDevTools IWJQuery suite and created a brand new Intraweb project but the problem remains.

Anyone have any ideas as to what's gone wrong?

Thanks

IWJQuery Suite 2.4.0.119
IntraWeb 14.0.36
Delphi XE2

Re: Error "Control <name> has no parent window"

PostPosted: 18 Feb 2015 11:14
by Jorge Sousa
Hi

I'm sorry, but we cannot reproduce this.

Can you reproduce this in a simple application.

Or, can you send us the form where that issue is happening?

Re: Error "Control <name> has no parent window"

PostPosted: 18 Feb 2015 22:40
by mait
Thanks for the reply Jorge.

I'm not surprised you can't duplicate it. I don't think it has to do with your components as such. I was hoping that someone else (smarter than me) may have experienced this and worked out the solution.

As I mentioned, simply creating a brand new Intraweb app and dropping a button or edit box onto the form generates the error so something must have changed in my development environment. I was hoping that there was something common to ...Edit, ...Button, ...DatePicker, ...Slider, ...TreeView, etc. that was not common to ...Label, ...Dialog, ...Region, ...CheckBox, ...RadioButton, etc. that might give a clue as to why some components work and others don't.

Thanks,

Peter Home

Re: Error "Control <name> has no parent window"

PostPosted: 01 Apr 2015 10:15
by sgaravatti
I report the same problem, same Intraweb version and Cgdevtools version. My Ide is C++Builder XE3.
Niccolò

Re: Error "Control <name> has no parent window"

PostPosted: 01 Apr 2015 10:56
by sgaravatti
It seems, if you have the disable render option, you get the error.
If you enable render, it works.
Niccolò

Re: Error "Control <name> has no parent window"

PostPosted: 01 Apr 2015 23:16
by mait
Hi Niccolò. Problem fixed. Thanks for taking the time to post the solution.

Peter