rowColumn insertion

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

Questions about motif? Contact us

2 posts / 0 new
Last post
rowColumn insertion

Submitted by Anonymous on Thu, 03/22/2001 - 18:28. Developers
how may one insert, delete, etc. items in a XmRowColumn without completely rebuilding

ICS_support

Deletions are easy -- just destroy the child or unmanage it.

Additions are a little more complex, unless you want to add the items at the end. You can either take advantage of the Xt Composite resource XtNinsertPosition or of the XmRowColumn resource XmNpositionIndex. These resources let you specify where in the list of children the new widget should go; as the XmRowColumn dumbly lays out its children in the order that they are stored internally, the result is to "insert" a child in the list.