Thanks for your reply. Actually my requirement is to insert some checkbuttons into Listbox or MListbox.
There will also be two buttons (up and down) beside the listbox which will let me move up/down any selection in the listbox.
Suppose, I have "job" "status" , "time", "result" as checkbuttons in the listbox/mlistbox. I need to select/de-select them (which will happen if they are checkbuttons, no issues) and then by pressing the buttons I can re-order the
appearence of checkbuttons in the listbox and finally collect the order of their appearence.
That means lets say the above order after pressing up/down on any selection will become "time", "result","job" "status"
I have already known MListbox does not support packing widgets in them. Listbox is also not working when I am doing the following thing. I have created a composite widget actually with Listbox and so used Subwidget
my $listbox = $self->Subwidget('listbox');
my $style = $self->ItemStyle('window');
my $btn = $listbox->Checkbutton(-text => 'state');
$listbox->insert('end', [-itemtype => 'window', -widget => $btn, -
+style => $style]);
The above code is giving error when I am doing $style = $listbox->ItemStyle('window').
Now I am trying with TList (tix widget). I am able to pack checkbuttons but moving them up and down is not able
to do. Please help.
Actually, I already have a main window where I have all the above mentioned items as columns. I want to serve a capability to the user of my tool so that they can hide/show columns in that main window and also can change the order of their appearence. For that, I need a dialog which will provide this listbox facility. Upon selection/deselection of checkbuttons and change of their order in the listbox, I will determine which all column to show in the main window and their order as well. You can
also suggest any alternative idea, say with NumEntry. But numEntry will set a number to them by which I will get the order the user wants. But what about hide/show then ?
I hope I have explained my requirement better.