How to programme around Xaw3d asciiTextWidget vanishing character bug ?
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to programme around Xaw3d asciiTextWidget vanishing character bug ?
Hi,
update: Am I doing anything seriously wrong ? With Autofill set to True, it doesn't make any difference if I set XtNwrap to never, word or line!
I have a question about Xaw3d widgets. I would like to have suggestions where I can find a good forum for Xaw3d questions. Or a hint to the question below, of course .
My problem is this. I am trying to set asciiTextWidget to Autofill. and use it as a scrolling text input widget (one line high). But it does not scroll right.
The code is at the bottom of this message. In it,I use the function "setIP" to switch back to the correct (wrapped) line after using the backspace key at the start of a line. This solves one problem.
The asciiTextWidget, by itself, overwrites the last character when it wraps a line. You can see this by compiling the code below. Write in the text box beyond the right border, and click "report". The last character on the first line is gone. If the end of a line is 'qwe', and the 'e' does not fit any more, with the resources I have set, e is put on the next line, and 'w' disappears. 'My' checkFill function needs a lot of code to try to solve this (Add a -DRInsert option for gcc to compile with this function). It does not work 100 % yet, because Xaw turns newlines into spaces when you use form-paragraph. I remove these, but this removes user inputted spaces as well
So my question is. How have real programmers done this ? I went through some old applications, but they do not use the widget in this way, or write their own text box widget (xfm).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.