textbox.c
// set an input prompt for edit mode
set an input prompt for edit mode
set an input prompt for edit mode
void textbox_prompt(textbox *tb, char *text)
{
	if (tb->prompt) free(tb->prompt);
	tb->prompt = strdup(text);
	textbox_extents(tb);
}
void textbox_prompt ( textbox * tb , char * text ) { if ( tb -> prompt ) free ( tb -> prompt ) ; tb -> prompt = strdup ( text ) ; textbox_extents ( tb ) ; }
set an input prompt for edit mode
set an input prompt for edit mode