how to create a widget button in c++

how to create the widget buttons to access in c++ and how to give the function in that buttons…
how to make photo slider type because change the material use arrow keys in the ui screen?please help me…,