我有一个包含多个文本项元素和一个按钮的对话框。如何检索值并使用它们?
new(D, dialog('Add a recipe')),
send(D, append(new(NameItem, text_item('Name')))),
send(D, append(new(InstItem, text_item('Instruction')))),
send(D, append(new(IngrItem, text_item('Ingredients')))),
send(D, append(new(TimeItem, text_item('Time')))),
send(D, append(button('Store', message(D, return, '1')))),
get(D, confirm, Rvalue),
write(NameItem), nl,
write(InstItem), nl,
write(IngrItem), nl,
write(TimeItem), nl,
free(D),