How can I hide text in a dialog after its been seen

I’d like to add text in my dialogs to explain features and then hide the text and shrink the dialog after it’s been seeN. Is there are show/hide or a more/less function that can be used in dialogs?