Exploring Tk::MListbox - A Tutorial Document Info
Class Reference | FAQ | Changes/Bug fixes
Date:20 Dec 2001
Author:Rob Seegel
Package:MListbox

What is it and what is it good for?

MListbox is a composite widget that's all about making potentially complicated tasks easier. It provides an easy way to implement tabular displays such as what might be needed to display the result set from a database query, or a list of files and directories. As it turns out, displaying data in columns is a common task, and there are other Tk widgets that provide similar functionality, and so much the better - choice is good. The different implementations each have their own strengths, and while there is a lot of overlap, some have features that the others don't. So what does MListbox offer?

Using ML

sample MListbox image

MListbox...

Currently, MListbox does have a few limitations - most of these limitations are directly because of Listbox. MListbox does not and cannot support several individually color rows - columns, yes, but not rows. The same holds true for fonts. Also, other widgets cannot be embedded into rows. Text justification is to the left only, and a single cells content can only be displayed in a single line without wrapping. All these things, and more can be handled using Tk::HList should you require them. Unfortunately, these other features come at the cost of built-in sorting, resizing, moveable columns and a slightly more complex API.

Features


This document was written by Rob Seegel on 20 Apr 2001