Next | Prev | Up | Top | Contents | Index

xmFileSelectionBox

A file selection box is designed to let the user interactively specify a pathname and a file. A filter may be used to display only certain files, based on a regular expression matching those filenames. This surprisingly simple code creates a file selection box:

#! /usr/sgitcl/bin/moat 
xtAppInitialize
xmFileSelectionBox .top managed
. realizeWidget
. mainLoop
With a file selection box named sb, these are the automatically-derived child widgets:

    sb.Apply       sb.FilterLabel     sb.Items         sb.Text
    sb.Cancel      sb.FilterText      sb.ItemsList
    sb.DirList     sb.Help            sb.Selection
    sb.Dir         sb.OK              sb.Separator
The callback substitutions supported for xmFileSelectionBox are

    %value    %value_length    %mask       %mask_length
    %dir      %dir_length      %pattern    %pattern_length

Next | Prev | Up | Top | Contents | Index