You cannot use ids (menu, parent, controls) with
anything other than a-z0-9: event handlers
use '_' to make up their names.


--- David Porter <[EMAIL PROTECTED]> wrote:

> 
> bill lam wrote:
> > Could you post some code for discussion?
> >
> I have taken a few menu options out of TRANSFORMIMAGE, and added 
> others.  Everything has worked until now.  The one in question is:
> 
> menu aramisinput  "Aramis Facet input" "" "" "";
> 
> I have also tried a differently named function , aroi_in_run, which is 
> also included below. its menu line was:
> 
> menu aroi_in_run "Aramis Facet Input " "" "" "";
> 
> Thanks again,
> David Porter
> 
> TRANSFORMIMAGE=: 0 : 0
> pc transformimage;pn "Image Target Points";
> menupop "&File";
> menu open "&Open" "Ctrl+o" "" "";
> menu save "&Save..." "Ctrl+s" "" "";
> menusep;
> menu close "&Close" "" "" "";
> menupopz;
> menupop "&Process Targets";
> menu aramis4pts "Aramis Targets..." "" "" "";
> menu flir4pts "FLIR Targets..." "" "" "";
> menusep;
> menu aramisinput  "Aramis Facet input" "" "" "";       
> menupopz;
> menupop "&View";
> menu vselpts "&Selected Points" "" "" "";
> menu refresh "Re&fresh Selected Points" "" "" "";
> menu clearpts "&Clear Selection" "" "" "";
> menusep;
> menu cursorcol "Change Cursor Color" "" "" "";
> menupopz;
> menupop "&History";
> menu back "&Back" "Ctrl+b" "" "";
> menu forward "&Forward" "Ctrl+f" "" "";
> menusep;
> menu clearhist "&Clear History" "" "" "";
> menupopz;
> menupop "Hel&p";
> menu help "Hel&p" "F1" "" "";
> menusep;
> menu about "&About" "" "" "";
> menupopz;
> cc win isigraph;
> setxywhx win
> )
> AROI_IN=: 0 : 0
> pc aroi_in;pn "Aramis Target Input";
> xywh 2 32 51 11;cc x1 edit;
> xywh 58 32 50 11;cc y1 edit;
> xywh 2 48 51 12;cc x2 edit;
> xywh 58 48 50 12;cc y2 edit;
> xywh 2 64 51 12;cc x3 edit;
> xywh 58 64 50 12;cc y3 edit;
> xywh 2 79 51 11;cc x4 edit;
> xywh 58 79 50 11;cc y4 edit;
> xywh 75 98 34 11;cc ok button;cn "OK";
> xywh 35 98 34 11;cc cancel button;cn "Cancel";
> xywh 24 4 64 8;cc s1 static;cn "Enter Aramis Target Point ";
> xywh 7 20 41 9;cc s2 static;cn "X Facet Number";
> xywh 64 20 40 10;cc s3 static;cn "Y Facet Number";
> pas 6 6;pcenter;
> rem form end;
> )
> 
> aroi_in_run=: 3 : 0
> wd AROI_IN
> NB. initialize form here
> wd 'pshow;'
> )
> 
> aroi_in_close=: 3 : 0
> wd'pclose'
> )
> transformimage_aramisinput=: 3 : 0
> aroi_in_run ''
> )
> > David Porter wrote:
> >> In the last two months my knowledge of J has gone from zero to able 
> >> to program a little.  It has been a really great journey.  However, 
> >> my deadline arrives Monday and I still haven't figured out how to add 
> >> a small window with an edit box to the transform_m.ijs script.  I'm 
> >> using J5.04 and the image3.ijs for version 5.04.
> >>
> >> I need to allow a user to enter four sets of x,y points, one to three 
> >> integers each.  These points will be used in the program that calls 
> >> the transform image script.
> >> I have tried to make a form, AROI_IN,  and added the  function 
> >> aroi_in_run to the menu.  When the menu item is clicked,  nothing 
> >> seems to happen.
> >>
> >> Any good ideas? Thanks in advance.
> >>
> >> Dave Porter
> >> ----------------------------------------------------------------------
> >> For information about J forums see http://www.jsoftware.com/forums.htm
> >>
> >
> >
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to