Hi!
In button callback function, you'll place a function like this:
SetCtrlAttribute (panel, PANEL_TEXTMSG, ATTR_VISIBLE, 0);
where PANEL_TEXTMSG is your text message Constant Name (in uir editor), and 0 stands for hide; 1=visible.
Maybe is better to perform a ProcessDrawEvents() after setting the control attributes!
Hope it helps.
Anyway, it can be a bad practice to hide text messages to save space on front panel; depending on your application, you can use tabs or more panels.
Let me know if this helps!
graziano