Memo Category Selection Dialogue
This function provides a dialogue for the selection of a memo category. If the global variable m_allcats is true, the option "All categories" is provided in addition.
If the user selected a category, the function returns the category number. The value -1 will be returned if the user left the dialogue by touching the area outside.