Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int window_add_buttons(lua_State* L)
- {
- ContainerWindow* lw = dynamic_cast<ContainerWindow*>(window_arg(L));
- lw->add_buttons(L);
- return 0;
- }
- void add_buttons(lua_State* L)
- {
- int nargs = lua_gettop(L);
- int i = 2;
- TEW* panel = new TEW(NULL,this,0,true);
- panel->align(alBottom,50);
- Layout layout(panel,this);
- while (i < nargs) {
- layout << Button(luaL_checkstring(L,i),(EH)&ContainerWindow::on_button,(void*)luaL_checkstring(L,i+1));
- i += 2;
- }
- layout.release();
- add(panel);
- size();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement