Thank you. It works now. 

> From: [email protected]
> Date: Sun, 10 Aug 2014 00:37:21 -0400
> To: [email protected]
> Subject: Re: [Jprogramming] jQT event problem
> 
> Here's a fixed version of your code:
> 
> wdexample =: 3 : 0
>  wd 'pc exampletop'
>  wd 'bin v'
>  wd 'cc btn button; cn "not active"'
>  wd 'bin h'
>  wd 'cc btn2 button; cn "click me!";'
>  wd 'cc lb listbox'
>  wd 'pshow'
> )
> 
> exampletop_btn2_button =: 3 : 0
>  smoutput 'clicked'
> )
> 
> exampletop_close=: 3 : 0
>  wd 'pclose'
> )
> 
> wdexample ''
> 
> You named your form 'exampletop' and you need your event handlers to use
> that.
> 
> Thanks,
> 
> -- 
> Raul
> 
> 
> On Sun, Aug 10, 2014 at 12:25 AM, Jon Hough <[email protected]> wrote:
> 
> > I'm trying to make a simple jqt form. I've been looking through the
> > exmples in the jqt demos, and made a very simple form:
> >
> >
> >
> > wdexample =: 3 : 0
> >
> >
> >
> > wd 'pc exampletop'
> >
> >
> >
> > wd 'bin v'
> >
> >
> >
> > wd 'cc btn button; cn "not active"'
> >
> >
> >
> > wd 'bin h'
> >
> >
> >
> > wd 'cc btn2 button; cn "click me!";'
> >
> >
> >
> > wd 'cc lb listbox'
> >
> >
> >
> > wd 'pshow'
> >
> >
> >
> > )
> >
> >
> >
> >
> >
> >
> > wdexample_btn2_button =: 3 : 0
> >
> >
> >
> > smoutput 'clicked'
> >
> >
> >
> > )
> >
> >
> >
> >
> >
> >
> > wdexample_close=: 3 : 0
> >
> >
> >
> > wd 'pclose'
> >
> >
> >
> > )
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > wdexample ''
> >
> >
> >
> >
> > Perhaps I am making an obvious mistake but I can't see it. My button, btn2
> > does nothing when clicked. And wdexample_close also does not close the
> > form. (I've also tried doing various other actions in the
> > wdexample_btn2_button =: 3 : 0 function (e.g. closing, printing a
> > calculation etc) but it seems the button is not bound to this function, and
> > looking through the demos I'm not sure what I'm doing differently.
> >
> >
> > Comparing this to the quickview1 example (in J802 jqt demos):
> > quickview1=: 3 : 0wd 'pc quickview1'wd 'cc e edit'wd 'bin h'wd 'cc run
> > button;cn "run"'wd 'cc view button;cn "View Source"'wd 'bin sz'wd 'set e
> > text *', e=. jpath '~addons/ide/qt/demo/quick1.qml'wd 'pshow')
> > NB.
> > =========================================================quickview1_e_button=:
> > 3 : 0wd 'quickview1 qv "', e ,'"')
> > NB.
> > =========================================================quickview1_run_button=:
> > quickview1_e_button
> > NB.
> > =========================================================quickview1_view_button=:
> > 3 : 0textview e;1!:1 <e)
> > NB.
> > =========================================================quickview1_close=:
> > 3 : 0wd 'pclose')
> > NB. =========================================================
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > quickview1''
> >
> >
> >
> >
> > It seems I'm not doing much differently. In the example, a button is
> > defined, with id = "view", and later a verb is defined with
> > formName_childId_childType syntax.
> >
> >
> >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
                                          
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to