error in Prototyper -> widget_panel

Stefano stegua at libero.it
Thu Jan 17 09:35:29 CET 2002


Hello,
I'm trying the "Prototyper" tutorial with <QTk.ozf> module downloaded 
from 'http://www.info.ucl.ac.be/people/ned/qtk/QTk.ozf', on windows 98 
with Oz 3.0. 
When I tried to run the following example:

----------------------------------------------------------
local
   P
   Desc=panel(glue:nswe
	      td(title:"Panel 1"
		 label(text:"This is the first panel"))
	      td(title:"Panel 2"
		 label(text:"This is the second panel"))
	      handle:P)
in
   {{QTk.build td(Desc)} show}
   {P addPanel(td(title:"Panel 3"
		  label(text:"This is the third panel")))}
end
----------------------------------------------------

I got the following message error:

%***************** Error: illegal field selection ***************
%**
%** In statement: empty . <N: Redirector> = _<optimized>
%** In statement: {<P/3 Value.'.'> empty <N: Redirector> _}
%**
%** Call Stack:
%** procedure 'QTkPlaceholder,get' in file "./QTkPlaceholder.oz", line 
153, column 6, PC = 22324064
%** procedure 'QTkPlaceholder,get' in file "./QTkPlaceholder.oz", line 
153, column 6, PC = 22324092
%** procedure 'QTkPanel,panel' in file "./QTkPanel.oz", line 98, column 
6, PC = 8144784
%** procedure 'FbNew' in 
file "/home/kost/mozart/share/lib/base/Object.oz", line 48, column 2, 
PC = 10006880
%** procedure 'NewFeat' in file "./QTkDevel.oz", line 1983, column 3, 
PC = 23200620
%** procedure 'MapLabelToObject' in file "./QTkDevel.oz", line 2039, 
column 3, PC = 23203200
%** procedure in file "./Frame.oz", line 43, column 8, PC = 8055980
%** procedure 'Map' in file "/home/kost/mozart/share/lib/base/List.oz", 
line 76, column 0, PC = 9979988
%** procedure 'Frame,init/fast' in file "./Frame.oz", line 30, column 
3, PC = 8056072
%** procedure 'QTkTopLevel,init/fast' in file "./QTk.oz", line 253, 
column 6, PC = 8076672
%** procedure 'FbNew' in 
file "/home/kost/mozart/share/lib/base/Object.oz", line 48, column 2, 
PC = 10006880
%** procedure 'DialogBuilder' in file "./QTk.oz", line 720, column 3, 
PC = 8097020
%**--------------------------------------------------------------

I tried all the example from Prototyper, and the Widget_panel is the 
only one who produce an error.

Does anyone have any suggestion?

have a nice day,
Ste
-
Please send submissions to users at mozart-oz.org
and administriva mail to users-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.





More information about the mozart-users mailing list