def getstr prompt, maxlen=80  #:nodoc:
      tabc = Proc.new {|str| Dir.glob(str +"*") }
      config={}; config[:tab_completion] = tabc
      config[:default] = "test"
      config[:display_length] = 11
      $log.debug " inside getstr before call "
      ret, str = rbgetstr(@form.window, @row+@height-1, @col+1, prompt, maxlen, config)
      $log.debug " rbgetstr returned #{ret} ,#{str}."
      return "" if ret != 0
      return str
    end
def getstr prompt, maxlen=80  #:nodoc:
      tabc = Proc.new {|str| Dir.glob(str +"*") }
      config={}; config[:tab_completion] = tabc
      config[:default] = "test"
      config[:display_length] = 11
      $log.debug " inside getstr before call "
      ret, str = rbgetstr(@form.window, @row+@height-1, @col+1, prompt, maxlen, config)
      $log.debug " rbgetstr returned #{ret} ,#{str}."
      return "" if ret != 0
      return str
    end
this is just a test of prompting user for a string
+ as an alternative to the dialog.