Results 1 to 2 of 2

Thread: Help me with ClanGUI

  1. #1

    Default Help me with ClanGUI

    I write my level manager and i create components by this way:
    example of creating button
    void App::CreateButton(CL_Window& win, CL_PushButton* button, std::string value, int x, int y, int w, int h)
    {
    button = new CL_PushButton(&win);
    CL_Rect client_area = win.get_client_area();
    button->set_geometry(CL_Rect(client_area.left + x, client_area.top + y, CL_Size(w, h)));
    button->set_text(value);
    }
    my class "App" consist all conponents.
    so how i should handle events?!
    i tried by this way:
    lvlname_button->func_clicked().set(this, &App:n_button_clicked, lvlname_button);
    but i get error that core dumped...
    help please

  2. #2
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Bergen, Norway
    Posts
    588

    Default

    Please provide the stack trace after the core dump, or handle exceptions in your main loop and dump out the exception + stack trace.

Similar Threads

  1. ClanGUI - DirectRender (I don't get it)
    By Tuisto in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 05-31-2011, 12:44 PM
  2. ClanGUI in latest 2.2 - new dependency
    By sphair in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 05-19-2010, 07:25 AM
  3. About ClanGUI
    By IanBorn in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 06-15-2009, 05:15 PM
  4. New theme in ClanGUI
    By sphair in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 03-21-2009, 08:12 AM
  5. Problems building clanGUI
    By mgarcia in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 12-15-2006, 03:22 PM

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
  •