[comp.windows.x.motif] Wcl; lists in form dialog corrupted

ratering@umn-cs.cs.umn.edu (Steve Ratering) (02/08/91)

Using wcl, I have a button that pops up a form dialog.  The form dialog has
two scrolled windows, each with a list (1, 2, 3) and (4, 5, 6).  The first time 
I push the button, the dialog pops up with the correct values in the lists, but 
when I push the button again a form pops up with corrupted values in the lists
(4, 5, 3) and (4, 5, 6).  What am I doing wrong?  Following is the short 
resource file.

Mnr.title:			Test
Mnr.wcChildren:			MainWindow

*MainWindow.wcConstructor:	XmCreateMainWindow
*MainWindow.wcChildren:		button

*button.wcConstructor:		XmCreatePushButton
*button.labelString:		Button
*button.activateCallback:	WcCreateChildrenCB( this, dialog )

*dialog.wcConstructor:		XmCreateFormDialog
*dialog.width:			50
*dialog.height:			100
*dialog.autoUnmanage:		FALSE
*dialog.wcChildren:		sw1, sw2

*sw1.wcConstructor:		XmCreateScrolledWindow
*sw1.bottomAttachment:		ATTACH_POSITION
*sw1.bottomPosition:		48
*sw1.wcChildren:		list1

*sw2.wcConstructor:		XmCreateScrolledWindow
*sw2.topAttachment:		ATTACH_POSITION
*sw2.topPosition:		52
*sw2.wcChildren:		list2

*list1.wcConstructor:		XmCreateList
*list1.itemCount:		3
*list1.visibleItemCount:	3
*list1.items:			1, 2, 3

*list2.wcConstructor:		XmCreateList
*list2.itemCount:		2
*list2.visibleItemCount:	2
*list2.items:			4, 5

Steve Ratering