in /usr/share/doc/gtkdialog/examples/combobox I found the following example
(puppy slacko 5.4..)
Code: Select all
#!/bin/sh
GTKDIALOG=gtkdialog
MAIN_DIALOG='
<window>
<vbox>
<hbox>
<text>
<label>Combobox</label>
</text>
<combobox width-request="295">
<variable>COMBOBOX</variable>
<item>First item</item>
<item>Second item</item>
<item>Third item</item>
</combobox>
</hbox>
<hbox>
<button ok></button>
<button cancel></button>
</hbox>
</vbox>
</window>
'
export MAIN_DIALOG
I=$IFS; IFS=""
for STATEMENTS in $(gtkdialog --program MAIN_DIALOG); do
eval $STATEMENTS
done
IFS=$I
Xdialog --title "View selection" --msgbox $COMBOBOX " select" 10 60 & MSGID23=$!
sleep 5
kill $MSGID23 2>/dev/null
in xdialog only shows the first word of the items: "First", "Second" or "Third"; ignores the second words: "item" in the three lines.
but to remove the space in the "First item" (Example: item>Firstitem</item>), then shows the full term xdialog
How to select the whole phrase including spaces
excuse for my English. and thanks