I'm having problems with using winopendialog.  I'm not sure what the
w parameter should  be as it is creating a new window.  I can't find
example usage of this yet. (microsoft's search is useless because it
won't search in scripts, and I've been building the index of my disk
with Namazu for 2 days now).

When I run my program and press the button which should bring this
up I get the rather baffling message (plenty of info in there but nothing
that seems to relate to objects in my code):

[EMAIL PROTECTED] /cygdrive/c/Documents and Settings/hgs/My 
Documents/brains/hgs/fsv
14:15:21$ ./fsv_main_dlg.exe

Run-time error 207
File C:\Documents and Settings\hgs\My Documents\brains\hgs\fsv\fsv_main_dlg.icn;
 Line 102
invalid field name
offending value: record util__Event__state_39(record util__Event__state_39(5),re
cord util__Event__methods_1(15),record gui__TextButton__state_1(46),60,-4)
Traceback:
   main()
   gui__Dialog_show_modal(record Untitled__state_1(record Untitled__state_1(85),
record Untitled__methods_1(181),record gui__Label__state_5(35),record gui__TextB
utton__state_5(46),record gui__TextButton__state_6(46),record gui__TextField__st
ate_5(47),record gui__Label__state_1(35),record gui__Label__state_3(35),record g
ui__Label__state_4(35),record gui__TextButton__state_1(46),record gui__TextButto
n__state_3(46),record gui__TextButton__state_4(46),record gui__TextField__state_
1(47),record gui__TextField__state_3(47),record gui__TextField__state_4(47),wind
ow_1:1(),1,&null,set_4(0),record gui__TextButton__state_1(46),&null,&null,window
_2:2(),&null,&null,1,500,500,100,387,36,1209561326944,-1,&null,&null,&null,&null
,&null,&null,&null,list_12 = [],list_13 = [],&null,record gui__Ticker__state_2(6
),&null,5,&null,&null,750,3000,&null,1500,&null,&null,&null,&null,&null,&null,&n
ull,&null,&null,"l","t",0,0,644,399,record Untitled__state_1(85),list_16(1),&nul
l,&null,window_1:3(),window_2:4(),&null,&null,&null,&null,list_10(13),1,&null,&n
ull,&null,&null,record gui__Ticker__state_1(6),list_4 = []),&null) from line 262
 in C:\Documents and Settings\hgs\My Documents\brains\hgs\fsv\fsv_main_dlg.icn
   gui__Dispatcher_message_loop(record gui__Dispatcher__state_1(record gui__Disp
atcher__state_1(7),record gui__Dispatcher__methods_1(23),set_1(1),set_2(1),50,10
,50),record Untitled__state_1(record Untitled__state_1(85),record Untitled__meth
ods_1(181),record gui__Label__state_5(35),record gui__TextButton__state_5(46),re
cord gui__TextButton__state_6(46),record gui__TextField__state_5(47),record gui_
_Label__state_1(35),record gui__Label__state_3(35),record gui__Label__state_4(35
),record gui__TextButton__state_1(46),record gui__TextButton__state_3(46),record
 gui__TextButton__state_4(46),record gui__TextField__state_1(47),record gui__Tex
tField__state_3(47),record gui__TextField__state_4(47),window_1:1(),1,&null,set_
4(0),record gui__TextButton__state_1(46),&null,&null,window_2:2(),&null,&null,1,
500,500,100,387,36,1209561326944,-1,&null,&null,&null,&null,&null,&null,&null,li
st_12 = [],list_13 = [],&null,record gui__Ticker__state_2(6),&null,5,&null,&null
,750,3000,&null,1500,&null,&null,&null,&null,&null,&null,&null,&null,&null,"l","
t",0,0,644,399,record Untitled__state_1(85),list_16(1),&null,&null,window_1:3(),
window_2:4(),&null,&null,&null,&null,list_10(13),1,&null,&null,&null,&null,recor
d gui__Ticker__state_1(6),list_4 = [])) from line 201 in dialog.icn
   gui__Dispatcher_do_event(record gui__Dispatcher__state_1(record gui__Dispatch
er__state_1(7),record gui__Dispatcher__methods_1(23),set_1(1),set_2(1),50,10,50)
) from line 142 in dispatcher.icn
   gui__Dialog_process_event(record Untitled__state_1(record Untitled__state_1(8
5),record Untitled__methods_1(181),record gui__Label__state_5(35),record gui__Te
xtButton__state_5(46),record gui__TextButton__state_6(46),record gui__TextField_
_state_5(47),record gui__Label__state_1(35),record gui__Label__state_3(35),recor
d gui__Label__state_4(35),record gui__TextButton__state_1(46),record gui__TextBu
tton__state_3(46),record gui__TextButton__state_4(46),record gui__TextField__sta
te_1(47),record gui__TextField__state_3(47),record gui__TextField__state_4(47),w
indow_1:1(),1,&null,set_4(0),record gui__TextButton__state_1(46),&null,&null,win
dow_2:2(),&null,&null,1,500,500,100,387,36,1209561326944,-1,&null,&null,&null,&n
ull,&null,&null,&null,list_12 = [],list_13 = [],&null,record gui__Ticker__state_
2(6),&null,5,&null,&null,750,3000,&null,1500,&null,&null,&null,&null,&null,&null
,&null,&null,&null,"l","t",0,0,644,399,record Untitled__state_1(85),list_16(1),&
null,&null,window_1:3(),window_2:4(),&null,&null,&null,&null,list_10(13),1,&null
,&null,&null,&null,record gui__Ticker__state_1(6),list_4 = []),-4) from line 166
 in dispatcher.icn
   gui__Dialog_process_normal(record Untitled__state_1(record Untitled__state_1(
85),record Untitled__methods_1(181),record gui__Label__state_5(35),record gui__T
extButton__state_5(46),record gui__TextButton__state_6(46),record gui__TextField
__state_5(47),record gui__Label__state_1(35),record gui__Label__state_3(35),reco
rd gui__Label__state_4(35),record gui__TextButton__state_1(46),record gui__TextB
utton__state_3(46),record gui__TextButton__state_4(46),record gui__TextField__st
ate_1(47),record gui__TextField__state_3(47),record gui__TextField__state_4(47),
window_1:1(),1,&null,set_4(0),record gui__TextButton__state_1(46),&null,&null,wi
ndow_2:2(),&null,&null,1,500,500,100,387,36,1209561326944,-1,&null,&null,&null,&
null,&null,&null,&null,list_12 = [],list_13 = [],&null,record gui__Ticker__state
_2(6),&null,5,&null,&null,750,3000,&null,1500,&null,&null,&null,&null,&null,&nul
l,&null,&null,&null,"l","t",0,0,644,399,record Untitled__state_1(85),list_16(1),
&null,&null,window_1:3(),window_2:4(),&null,&null,&null,&null,list_10(13),1,&nul
l,&null,&null,&null,record gui__Ticker__state_1(6),list_4 = []),-4) from line 39
9 in dialog.icn
   gui__Component_do_handle_event(record Untitled__state_1(record Untitled__stat
e_1(85),record Untitled__methods_1(181),record gui__Label__state_5(35),record gu
i__TextButton__state_5(46),record gui__TextButton__state_6(46),record gui__TextF
ield__state_5(47),record gui__Label__state_1(35),record gui__Label__state_3(35),
record gui__Label__state_4(35),record gui__TextButton__state_1(46),record gui__T
extButton__state_3(46),record gui__TextButton__state_4(46),record gui__TextField
__state_1(47),record gui__TextField__state_3(47),record gui__TextField__state_4(
47),window_1:1(),1,&null,set_4(0),record gui__TextButton__state_1(46),&null,&nul
l,window_2:2(),&null,&null,1,500,500,100,387,36,1209561326944,-1,&null,&null,&nu
ll,&null,&null,&null,&null,list_12 = [],list_13 = [],&null,record gui__Ticker__s
tate_2(6),&null,5,&null,&null,750,3000,&null,1500,&null,&null,&null,&null,&null,
&null,&null,&null,&null,"l","t",0,0,644,399,record Untitled__state_1(85),list_16
(1),&null,&null,window_1:3(),window_2:4(),&null,&null,&null,&null,list_10(13),1,
&null,&null,&null,&null,record gui__Ticker__state_1(6),list_4 = []),-4) from lin
e 424 in dialog.icn
   gui__Component_handle_event(record Untitled__state_1(record Untitled__state_1
(85),record Untitled__methods_1(181),record gui__Label__state_5(35),record gui__
TextButton__state_5(46),record gui__TextButton__state_6(46),record gui__TextFiel
d__state_5(47),record gui__Label__state_1(35),record gui__Label__state_3(35),rec
ord gui__Label__state_4(35),record gui__TextButton__state_1(46),record gui__Text
Button__state_3(46),record gui__TextButton__state_4(46),record gui__TextField__s
tate_1(47),record gui__TextField__state_3(47),record gui__TextField__state_4(47)
,window_1:1(),1,&null,set_4(0),record gui__TextButton__state_1(46),&null,&null,w
indow_2:2(),&null,&null,1,500,500,100,387,36,1209561326944,-1,&null,&null,&null,
&null,&null,&null,&null,list_12 = [],list_13 = [],&null,record gui__Ticker__stat
e_2(6),&null,5,&null,&null,750,3000,&null,1500,&null,&null,&null,&null,&null,&nu
ll,&null,&null,&null,"l","t",0,0,644,399,record Untitled__state_1(85),list_16(1)
,&null,&null,window_1:3(),window_2:4(),&null,&null,&null,&null,list_10(13),1,&nu
ll,&null,&null,&null,record gui__Ticker__state_1(6),list_4 = []),-4) from line 3
17 in component.icn
   gui__Button_handle_event(record gui__TextButton__state_1(record gui__TextButt
on__state_1(46),record gui__TextButton__methods_1(145),"c",373,35,&null,&null,&n
ull,"Browse",&null,&null,&null,&null,&null,&null,1209561327444,&null,&null,"365"
,"22",51,24,"l","t",365,22,51,24,record Untitled__state_1(85),list_24 = [],1,&nu
ll,window_1:5(),window_2:6(),1,&null,&null,record Untitled__state_1(85),list_25
= [],&null,&null,&null,&null,&null,record gui__Ticker__state_3(6),list_19(1)),-4
) from line 304 in component.icn
   gui__Button_handle_release(record gui__TextButton__state_1(record gui__TextBu
tton__state_1(46),record gui__TextButton__methods_1(145),"c",373,35,&null,&null,
&null,"Browse",&null,&null,&null,&null,&null,&null,1209561327444,&null,&null,"36
5","22",51,24,"l","t",365,22,51,24,record Untitled__state_1(85),list_24 = [],1,&
null,window_1:5(),window_2:6(),1,&null,&null,record Untitled__state_1(85),list_2
5 = [],&null,&null,&null,&null,&null,record gui__Ticker__state_3(6),list_19(1)),
-4) from line 165 in button.icn
   gui__Button_on_action(record gui__TextButton__state_1(record gui__TextButton_
_state_1(46),record gui__TextButton__methods_1(145),"c",373,35,&null,&null,&null
,"Browse",&null,&null,&null,&null,&null,&null,1209561327444,&null,&null,"365","2
2",51,24,"l","t",365,22,51,24,record Untitled__state_1(85),list_24 = [],1,&null,
window_1:5(),window_2:6(),1,&null,&null,record Untitled__state_1(85),list_25 = [
],&null,&null,&null,&null,&null,record gui__Ticker__state_3(6),list_19(1)),-4) f
rom line 130 in button.icn
   util__Connectable_fire(record gui__TextButton__state_1(record gui__TextButton
__state_1(46),record gui__TextButton__methods_1(145),"c",373,35,&null,&null,&nul
l,"Browse",&null,&null,&null,&null,&null,&null,1209561327444,&null,&null,"365","
22",51,24,"l","t",365,22,51,24,record Untitled__state_1(85),list_24 = [],1,&null
,window_1:5(),window_2:6(),1,&null,&null,record Untitled__state_1(85),list_25 =
[],&null,&null,&null,&null,&null,record gui__Ticker__state_3(6),list_19(1)),60,-
4) from line 143 in button.icn
   Untitled_on_image1_browse_btn(record Untitled__state_1(record Untitled__state
_1(85),record Untitled__methods_1(181),record gui__Label__state_5(35),record gui
__TextButton__state_5(46),record gui__TextButton__state_6(46),record gui__TextFi
eld__state_5(47),record gui__Label__state_1(35),record gui__Label__state_3(35),r
ecord gui__Label__state_4(35),record gui__TextButton__state_1(46),record gui__Te
xtButton__state_3(46),record gui__TextButton__state_4(46),record gui__TextField_
_state_1(47),record gui__TextField__state_3(47),record gui__TextField__state_4(4
7),window_1:1(),1,&null,set_4(0),record gui__TextButton__state_1(46),&null,&null
,window_2:2(),&null,&null,1,500,500,100,387,36,1209561326944,-1,&null,&null,&nul
l,&null,&null,&null,&null,list_12 = [],list_13 = [],&null,record gui__Ticker__st
ate_2(6),&null,5,&null,&null,750,3000,&null,1500,&null,&null,&null,&null,&null,&
null,&null,&null,&null,"l","t",0,0,644,399,record Untitled__state_1(85),list_16(
1),&null,&null,window_1:3(),window_2:4(),&null,&null,&null,&null,list_10(13),1,&
null,&null,&null,&null,record gui__Ticker__state_1(6),list_4 = []),record util__
Event__state_39(record util__Event__state_39(5),record util__Event__methods_1(15
),record gui__TextButton__state_1(46),60,-4)) from line 15 in connectable.icn
   {record util__Event__state_39(record util__Event__state_39(5),record util__Ev
ent__methods_1(15),record gui__TextButton__state_1(46),60,-4) . get_event} from
line 102 in C:\Documents and Settings\hgs\My Documents\brains\hgs\fsv\fsv_main_d
lg.icn

[EMAIL PROTECTED] /cygdrive/c/Documents and Settings/hgs/My 
Documents/brains/hgs/fsv
14:15:27$


and the call which is upsetting it is:

 98
 99    # Browse for image1
100    method on_image1_browse_btn(ev)
101       local result, eventname, container, code
102       eventname := ev.get_event()
103       container := ev.get_container()
104       code := ev.get_code()
105       # can I write stuff -- where will it go?
106       write("event " || eventname || " from " ||
107             container || " with code " || code ||
108             "\n")

line numbers (added by vim : set number ) not actually in the source.


Is there any way to get the variable name of the offending thing into the
stack trace (by adding some debugging flags?) and is there an example available
of how to use the events passed in to handler methods for buttons, anywhere?

        Thank you,
        Hugh

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to