Updating the scollbars in a multiline XrtStringField
I want the scrollbars of my multiline string field to update as soon as I assign a new value to the field. How can I do this?
The scollbars are not updated until the resource XmNvalue is updated, either by the user or the programmer. Setting XmNxrtFldInternalValue meets neither of these conditions because XmNvalue is changed internally by the widget. To get around this either set the resource XmNvalue instead of XmNxrtFldInternalValue or if you need to set XmNxrtFldInternalValue use this code snippet: