hwtk::progessbar command not working!

AjinkyaG
AjinkyaG Altair Community Member
edited March 4 in Community Q&A

Hello All,

I am trying to run the test code from documentation and the hwtk::progessbar command ends up with following error.

--> invalid command name "hwtk::progessbar"

Here is the code from documentation. Can you guide me what goes wrong?

proc doBars {op args} {
    foreach w $args {
    $w $op
    }
}


hwtk::dialog .dlg -title "::hwtk::progressbar"
set w [.dlg recess]

hwtk::frame $w.f
pack $w.f -fill both -expand 1
set w $w.f

label $w.11 -text "Determinate" 
hwtk::progessbar $w.p1 -mode determinate
label $w.12 -text "Indeterminate"
hwtk::progessbar $w.p2 -mode indeterminate
hwtk::button $w.start -text "Start Progress" -command [list::hwtk::demo::doBars start $w.p1 $w.p2]
hwtk::button $w.stop -text "Stop Progress" -command [list::hwtk::demo::doBars stop $w.p1 $w.p2]

grid $w.11 - -pady 5 -padx 10
grid $w.p1 - -pady 5 -padx 10
grid $w.12 - -pady 5 -padx 10
grid $w.p2 - -pady 5 -padx 10
grid $w.start $w.stop - -pady 10 -padx 5
grid configure $w.start -sticky e
grid configure $w.stop -sticky w
grid columnconfigure $w all -weight 1

.dlg post

 

 

Tagged:

Best Answer

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited March 1 Answer ✓

    Looks like you are missing an "r"

    ::hwtk::progressbar

Answers

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited March 1 Answer ✓

    Looks like you are missing an "r"

    ::hwtk::progressbar

  • AjinkyaG
    AjinkyaG Altair Community Member
    edited March 1

    Looks like you are missing an "r"

    ::hwtk::progressbar

    Thanks. Then seems like a typo in documentation of Hyperworks!

  • Vladimir_Gantovnik
    Vladimir_Gantovnik Altair Community Member
    edited March 4

    :)