Returns a pointer to button located at the specified index.
The pointer can be NULL if the specified index is out of range.