I'm just a beginnner in Unicon, so I tried the test-dialog
example from the Ub.pdf book, reported on page 195-196.
As soon as I start the program I get the following error :

gui.icn :error whilst processing object Label : x position unspecified
Strike any key to close console...

This is the program :

----------

link gui
class TestDialog : _Dialog(b)
  method dialog_event(ev)
   if ev.get_component() === b & ev.get_code() > 0 then
     dispose()
  end
initially
  local l
  self._Dialog.initially()
  l := Label("label=Click to close", "pos=50%,33%", "align=c,c")
  add(l)
  b := TextButton("label=Button", "pos=50%,66%", "align=c,c")
  add(b)
  set_attribs("size=215,150", "bg=light gray",
     "font=serif", "resize=on")
  show()
end

procedure main()
  TestDialog()
end

---------
If I comment the Label and TextButton creation and insertion
then the dialog appears and quickly disappears.
I tried also to move the set_attribs immediately after the 
self._Dialog.initially(), with the same effects.

I'm using Win2k pro.
Any suggestion ?
Maurizio


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Unicon-group mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to