Hi,
Notepad++ is made in C++, as i can see from the source code.
However, you can have the [X] button on the tabsheets, when you build your application using the Qt LCLWidget, it's done by going to Project -> Project Options -> Build Mode, and change the Macro Value of LCLWidgetType to Qt.
However, there is a small bug, when you have 2 tabsheets, when you press the [X] button of the non-active page, the active one will close.
However, you must code the close action by your self. Lazarus wont do it for you.
Sincerely,
LinkOS.