paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paragui-users] timer object


From: address@hidden
Subject: [paragui-users] timer object
Date: Thu, 21 Jul 2005 13:48:06 +0800

        In my application, I need to create and destroy timer object in run time,

but I found that when I destroy 1 timer object, sometimes others stop working, either.

        Its happens in test/animation.cpp too. I am using ParaGUI-1.1.8.

        In main(), I changed it to destroy anim_test after anim_test2 are created.

 

        // Attempt to get animation

        PlayField* anim_test =new PlayField(

                // still no parent widget

                NULL,

                // a static function to create rects

                PG_Rect(260,120,120,50)

                );

        anim_test->AddTimer(400);

        anim_test->Show();

    PlayField2 anim_test2(

          NULL,

          PG_Rect(260, 300, 120, 100)

          );

        anim_test2.AddTimer(40);

        anim_test2.AddTimer(20);

        anim_test2.Show();

        delete anim_test;

        app.Run();

 

        Then anim_test2 does not work.

        I did something wrong, or it’s a bug?

 

Li TsungLin


reply via email to

[Prev in Thread] Current Thread [Next in Thread]