#!/bin/sh

GTKDIALOG=gtkdialog

funcentCreate() {
	for ((f = $1; f < $2; f++)); do
		echo '<entry editable="false"><default>"'$f'"</default></entry>'
	done
}

export MAIN_DIALOG='
<window title="VBox Scrollable" resizable="false">
	<vbox>
		<frame vbox widget scrolled window functionality>
			<hbox>
				<vbox scrollable="true" width="200" height="200">
					'"$(funcentCreate 0 10)"'
				</vbox>
				<vbox scrollable="true" width-request="500" width="400" height="200">
					'"$(funcentCreate 0 10)"'
				</vbox>
			</hbox>
			<hbox>
				<vbox scrollable="true" height-request="500" width="400" height="200">
					'"$(funcentCreate 0 10)"'
				</vbox>
				<vbox scrollable="true" width-request="500" height-request="500" width="200" height="200">
					'"$(funcentCreate 0 10)"'
				</vbox>
			</hbox>
		</frame>
		<hbox homogeneous="true">
			<button ok></button>
		</hbox>
	</vbox>
	<action signal="hide">exit:Exit</action> 
</window>
'

$GTKDIALOG --program=MAIN_DIALOG

