CPB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dynamic Objects.
I believe that you are missing one line:
opEdit->Parent = this;
And, I don't think you necessarily need the line:
opEdit->Show();
Hope that helps.
----------
> From: BOYDELL@infonational.com
> To: cpb-thread@zdtips.com
> Subject: Dynamic Objects.
> Date: Tuesday, June 24, 1997 9:57 AM
>
> I am sure I am just missing something simple, but why
> doesn't this work?
>
> //====
>
> void __fastcall TForm1::FormShow(TObject *Sender)
> {
> opEdit = new TEdit(this);
> opEdit->Left = 10;
> opEdit->Top = 10;
> opEdit->Show();
>
> }
>
> //====
>
>
> where opEdit is defined in the header file as part of the
> TForm object like this:
>
> //=====
> private: // User declarations
> TEdit *opEdit;
> //=====
>
>
>
> Thanks.
>
> ===================================
> Boydell (boydell@infonational.com)
> ===================================
W Komornicki's Home Page |
Main Index |
Thread Index