next up previous contents
Next: 3.2.1 Fx_Frame options Up: 3 Custom Programming Previous: 3.1 The code statement

3.2 Accessing Fx Widgets and Tk frames

QddbScript uses the following Tk window hierarchy for its main toplevel window:

Fx Widget Access Command Tk path
Fx_Menubar =menubar .menubar
Fx_Frame =AttrName All under the frame .fx
Fx_Entry =AttrName All under the frame .fx

You can configure settings or retrieve the current settings for any Fx widget using configure and cget commands:

    if {[menubar cget -auto_clear] == 0} {
        ;# auto-clear is turned off
    }
    =Items.Qty configure -labelfg red -afterview {
    }
    bind [=Items.Qty GetEntry] <FocusOut> {
        ;# recalculate, etc.
    }





Herrin Software Development, Inc.