new TShape(Form1)

This is a discussion on new TShape(Form1) within the C++ Programming forums, part of the General Programming Boards category; class TForm1 : public TForm { __published: TShape *shot; void __fastcall FormCreate(TObject *Sender); private: public: __fastcall TForm1(TComponent* Owner); TShape *mshot; ...

  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,136
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21