Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!rutgers!bellcore-2!bellcore!bagheera!hammy From: hammy@bagheera.ctt.bellcore.com (John G. Smith) Newsgroups: comp.windows.x.motif Subject: Re: Newline character in labelString Message-ID: <27326@bellcore.bellcore.com> Date: 28 Sep 90 13:29:37 GMT References: <16690001@teecs.UUCP> Sender: news@bellcore.bellcore.com Reply-To: hammy@bagheera.ctt.bellcore.com (John G. Smith) Organization: Bell Communications Research, Inc. Lines: 25 This is not an answer to the problem of putting a newline into a labelstring, just a related issue that I've found somewhat annoying. I have a number of single line text items in an application. I set multilineedit false. Fine - the works as I expect, it doesn't get entered into the text. But gets put into the value, causing the text already in the text item to scroll up, and hence become invisible. Since this is a single line text item, I don't want to add a scroll bar to get at the previous line(s). Why doesn't the text item ignore all characters that might cause it to become multi-line when not in multilineedit? The solution I use is simple, but shouldn't be necessary (modifyverifycallback checks whether added text contains any character that might cause this, and sets doit to false). Is this a known bug, a "feature", or am I missing something? John. _____ John G. Smith email : hammy@ctt.bellcore.com RRC 1H-213 phone : (201) 699-4530