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

Subversion Repositories or1k_old

[/] [or1k_old/] [tags/] [start/] [insight/] [itcl/] [iwidgets3.0.0/] [demos/] [scrolledframe] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
#!/bin/sh
2
# ----------------------------------------------------------------------
3
#  DEMO: scrolledframe in [incr Widgets]
4
# ----------------------------------------------------------------------
5
#\
6
exec itkwish "$0" ${1+"$@"}
7
package require Iwidgets 3.0
8
 
9
# itkwish interprets the rest...
10
# ----------------------------------------------------------------------
11
option add *textBackground seashell
12
 
13
iwidgets::scrolledframe .sf -width 4i -height 2i -labeltext "Scrolledframe"
14
pack .sf
15
 
16
set win [.sf childsite]
17
 
18
set all ""
19
foreach option [.sf configure] {
20
    if {[llength $option] == 5} {
21
        set name [lindex $option 0]
22
        set val [lindex $option end]
23
 
24
        set entry [iwidgets::entryfield $win.#auto]
25
        pack $entry -fill x
26
 
27
        $entry configure -labeltext $name \
28
            -command ".sf configure $name \[$entry get\]"
29
        $entry insert 0 $val
30
 
31
        lappend all $entry
32
    }
33
}
34
eval iwidgets::Labeledwidget::alignlabels $all

powered by: WebSVN 2.1.0

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