Results 1 to 2 of 2

Thread: Does exec() in CL_PushButton need to be called?

  1. #1

    Default Does exec() in CL_PushButton need to be called?

    Hello,

    I am curious as to whether calling exec() for a CL_PushButton is needed for it to work properly as what it says in reference is, "Run component in modal mode. "

    Since, calling exec() seems to pause the rendering for my game.

    Also, does func_close() for a CL_PushButton need to be attached to a CL_Slot or something similar for it to be used?

    Since I looked at some GUI examples (ones with a GUI window inside an application window) into closing one of them.

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    heh, I have never tried calling CL_PushButton with exec()

    exec() is a member function of CL_GUIComponent, it is used for creating modal components (most often windows). So your app is paused while of component is active.

    You only need to use func_clicked(); with CL_PushButton.

    The func_close() function is again a member of CL_GUIComponent, and is only really useful when creating your own components.

    Hopefully the examples will be tidied for the ClanLib 2.2 preview release

Similar Threads

  1. Replies: 2
    Last Post: 04-14-2010, 05:45 PM
  2. GUI_Manager::exec()
    By catch22 in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 05-31-2009, 03:30 AM
  3. pausing game logic when OnItemMenu is being called
    By Pleng in forum Novashell Game Creation System
    Replies: 3
    Last Post: 05-14-2009, 06:40 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •