Ignore:
Timestamp:
Sep 26, 2005 9:01:57 PM (19 years ago)
Author:
mmc
Message:

Fixed the size of various widgets to request a smaller size,
so applications don't need to take up so much screen real estate.

Fixed the <string> entries to set their <default> value properly.

Added a new <separator> entry, which adds separation between
input controls.

Added a "zoo" of examples, showing little snippets of XML code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/controls.tcl

    r52 r69  
    131131            button $w -text $label -command [list $service run]
    132132        }
     133        separator {
     134            # no widget to create
     135            set _name2info($name-value) "--"
     136        }
    133137        default {
    134138            error "don't know how to add control type \"$type\""
     
    136140    }
    137141
    138     if {$type != "control"} {
     142    if {$type != "control" && $type != "separator"} {
    139143        $_owner widgetfor $path $w
    140144
     
    389393                }
    390394                grid columnconfigure $frame 1 -weight 1
    391             }
    392 
     395            } elseif {$wv == "--"} {
     396                grid rowconfigure $frame $row -minsize 10
     397            }
    393398
    394399            incr row
Note: See TracChangeset for help on using the changeset viewer.