You can force this by just drawing all the buttons and implement a kind of text field, but this is not what OpenGL is made for.
At your place I would use a language like Objective-C for Mac platforms, and C# for Windows platforms.If instead you want to stick with C++, then use a library like Qt.