Thread: new TShape(Form1)

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    6

    Question new TShape(Form1)

    class TForm1 : public TForm
    {
    __published:
    TShape *shot;
    void __fastcall FormCreate(TObject *Sender);
    private:
    public:
    __fastcall TForm1(TComponent* Owner);
    TShape *mshot;
    };
    #########

    I call

    void __fastcall TForm1::Timer1Timer(TObject *Sender)
    {
    .
    .
    mshot = new TShape(Form1);
    .
    .
    }

    but I can`t see the TShape.
    how can I create a new TShape object with the same Params looks like
    TShape *shot;
    and can use it in my Form1?

  2. #2
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138
    WTF is __published? Is that borland-specific? Sounds like it.

  3. #3
    Registered User
    Join Date
    Mar 2002
    Posts
    6
    yes, Borland C++ Builder 6.0

Popular pages Recent additions subscribe to a feed