understanding touchLib.h

sorry for the bad description.

I started with the given example. It works fine and does what it should do displaying buttons which can be pressed correctly.

Then I tried to "outsource" a single buttonAdd-Line in a separate function.
Compiling gives no error, but the display keeps black. As I do not understand the touchLib.h-code it is really hard for me to do some systematic troubleshooting.