How can I make a "message log window"?

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
How can I make a "message log window"?

Submitted by Anonymous on Mon, 07/09/2001 - 08:57. Developers
Hi, there...
I just started to make X/Motif... I don`t know
it well.. 8-(
Anyway...
I got some programs which contained "printf(...)",
write(*,*) `...`- FORTRAN PROGRAM...
So, I hope to display these message in the "log window."
I tried to make it using XmText and XmTextSetString following the programming text book examples. But It didn`t act as I wish.
I guess I need some techniques or functions which
I don`t know.
Can anybody explain how to make it in detail?
Thanks

ICS_support

There is a widget that you might want to look at -- the XmCommand, which is for this sort of multiple-message history.

Other folks do use the XmText, with newlines and the new message appended -- I think the trick is to use XmTextReplace so as to add to the text rather than replacing it in total.