First, thanks to Clint, Michael and Wade for their helpful comments re: compiling Unicon on Debian Sarge. The compilation went ok and it sort of works with some problems. In the "open" dialogue, the files are in a strange order on the righthand panel. Sometimes they are alphabetical and sometimes in inverse alphabetical order with files beginning with "v" listed first (i.e. before w, x, y and z). Most of the menu items don't work (help, configure, etc.). The important ones (compile and run) do work. That's just a minor problem and I'm happy to use a command line interface. I'm having a problem with ivib which I can run and create files but can't compile. First, my directory structure is:
/opt/Unicon with /opt/Unicon/bin in the path. The lib directory is:
/opt/Unicon/ipl/lib
I haven't found gui.icn in the distribution which is Unicon Version 10.0 (beta-3). November 25, 2002. I created a simple program using ivib called zzz.icn:
class dialog : _Dialog(text_button_1)
method handle_text_button_1(ev)
end


  method handle_default(ev)
  end

  method dialog_event(ev)
     case ev.get_component() of {
        text_button_1 : handle_text_button_1(ev)
        default : handle_default(ev)
     }
  end

  method init_dialog()
  end

  method end_dialog()
  end

  method setup()
     self.set_attribs("size=644,399", "bg=pale gray")
     text_button_1 := TextButton()
     text_button_1$set_pos("18", "47")
     text_button_1$set_label("Mybutton")
     text_button_1$set_internal_alignment("c")
     self$add(text_button_1)
  end

  method component_setup()
     self.setup()
  end

  initially
     self$_Dialog.initially()
end

procedure main()
  local d
  d := dialog()
  d.show_modal()
end
Here's what happens when I try to compile it:
Translating:
zzz.icn:
File zzz.icn; Line 1 # "class": invalid declaration
File zzz.icn; Line 24 # invalid character
File zzz.icn; Line 25 # invalid character
File zzz.icn; Line 26 # invalid character
File zzz.icn; Line 27 # invalid character
File zzz.icn; Line 35 # invalid character
6 errors
Any help would be greatly appreciated.
Cheers,
Jonathan


-------------------------------------------------------
This Newsletter Sponsored by: Macrovision For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
Unicon-group mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to