OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [start/] [insight/] [tix/] [library/] [StatBar.tcl] - Blame information for rev 1782

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# StatBar.tcl --
2
#
3
#       The StatusBar of an application.
4
#
5
# Copyright (c) 1996, Expert Interface Technologies
6
#
7
# See the file "license.terms" for information on usage and redistribution
8
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
9
#
10
 
11
tixWidgetClass tixStatusBar {
12
    -classname TixStatusBar
13
    -superclass tixPrimitive
14
    -method {
15
    }
16
    -flag {
17
        -fields
18
    }
19
    -static {
20
        -fields
21
    }
22
    -configspec {
23
        {-fields fields Fields ""}
24
    }
25
}
26
 
27
#--------------------------
28
# Create Widget
29
#--------------------------
30
proc tixStatusBar:ConstructWidget {w} {
31
    upvar #0 $w data
32
 
33
    tixChainMethod $w ConstructWidget
34
 
35
    foreach field $data(-fields) {
36
        set name  [lindex $field 0]
37
        set width [lindex $field 1]
38
 
39
        set data(w:width) [label $w.$name -width $width]
40
    }
41
}
42
 
43
 
44
#----------------------------------------------------------------------
45
#                         Public methods
46
#----------------------------------------------------------------------
47
 
48
 
49
#----------------------------------------------------------------------
50
#                         Internal commands
51
#----------------------------------------------------------------------

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.