Hi,

  Sorry there was a bug in the IupGetParam callback return value parsing in
Lua. It is fixed and committed to CVS. Thanks for reporting this.

  A new IUP version is scheduled for November. 

Best,
Scuri

> -----Original Message-----
> From: Simon Orde [mailto:[email protected]]
> Sent: sexta-feira, 19 de outubro de 2012 09:11
> To: [email protected]
> Subject: [Iup-users] Can't get iup.GetParam to work as expected
> 
> Hi
> 
> I am using iup.GetParam to put out a dialog with various  controls, in Lua
> 5.1.  In my first version, it had no 'action' callback function and it
> worked fine.  I then wanted to add some validation to occur when the user
> clicks on the OK button.  If the validation failed, I'd put out a message
> box and the dialog would stay open.
> 
> It looks as though all I have to do is create a callback function, and
trap
> the case where the param_index value to my callback is -2, and return 0 if
> validation fails.  But this doesn't work.  The documentation says "You can
> reject the change or the OK action by returning 0 in the callback,
otherwise
> you must return 1".  My callback function is being called OK, but
returning
> 0 does not prevent the dialog from closing.  Have I just misunderstood
what
> returning 0 does, or am I doing something wrong.
> 
> Simon
> 
> 
>
----------------------------------------------------------------------------
--
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> Iup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/iup-users


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to