Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnPress Callback #85

Open
Wanngo opened this issue Jan 8, 2014 · 0 comments
Open

OnPress Callback #85

Wanngo opened this issue Jan 8, 2014 · 0 comments

Comments

@Wanngo
Copy link

Wanngo commented Jan 8, 2014

hi everyone , i'm have problem with gui callback

pseudo code
void Ret_CallBack(Gwen::Controls::Base *p)
{
//some code
}

Gwen::Controls::Button *pButton = new Gwen::Controls::Button(pCanvas);
//pCanvas == SFML Window
pButton->SetText(L"CLICK ME!");
pButton->OnPress.Add(pCanvas,&_CallBack);

I'm not understand template to CallBack function

Someone can help me , upload own code /
not using UnitTest( with this classes)

sorry bad eng! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant