PDA

View Full Version : Help me with ClanGUI



Kubik
09-01-2012, 10:55 AM
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::on_button_clicked, lvlname_button);
but i get error that core dumped...
help please

sphair
09-02-2012, 07:58 PM
Please provide the stack trace after the core dump, or handle exceptions in your main loop and dump out the exception + stack trace.