declare sub hideSpud2form

CREATE Spud2form as qform

    Center
    Caption = "Settings for: Spud2"
    visible=0

    ' Put your indicator settings code here

    create Spud2periodlab as qlabel
        left=0
        top=0
        caption="Bars back:"
    end create

    create Spud2periodedit as qedit
        left=Spud2periodlab.width+100
        top=0
        text="300"
    end create
    
    create Spud2curtflab as qlabel
        left=0
        top=20
        caption="Current timeframe:"
    end create

    create Spud2curtfedit as qedit
        left=Spud2curtflab.width+100
        top=20
        text="1440"
    end create

    create Spud2autotf as qcheckbox
        top=40
        caption="Autodetect current timeframe"
	width=200
	checked=1
    end create

    create Spud2btnok as qbutton
        left=0
        top=20
        caption="OK"
        onclick=hideSpud2form
    end create

END CREATE

sub hideSpud2form
    Spud2form.visible=0
end sub
