Function to Clean a Multitext WIdget

like the title say… i need a function of photon or a custom method to clean a multitext widget… can u help me ?

Translation: “Like the title says, I need a Photon function or a custom method to clean a PtMultiText widget. Can you please help me? Thanks.”

Sorry; bad grammar is a pet peeve of mine, especially when you’re asking people for pro bono help. It muddies the waters. For example, “method” is probably a bad word choice, because the word “method” means something to programmers, as opposed to meaning just “a way to do something.” Also, I’m not 100% sure what you mean by “clean” in this case. Proper punctuation and capitalization would also be nice.

char t[2]; t[0]=t[1]=0; PtSetResource(my_mtext, Pt_ARG_TEXT_STRING, &t, 0);

This will set the text to an empty string. Photon should know the widget has been changed so it should redraw, but if not call


I apologize; I didn’t actually type this code in and compile it, so there may be a typo or two.

-James Ingraham
Sage Automation, Inc.