Re: [Iup-users] About using IUP.Text:action in Lua

2018-01-17 Thread Hernan Cano
Hey, Pete: Thanks for your response. I cannot run your examples. It seems some kind of C/C++ language. I tried to run it with Lua v5.3.3, but I receive " syntax error near 'pGUI' ". I appreciate your feedback. It's difficult for me to understand (by first sight) how can I use ValueChanged_CB. F

Re: [Iup-users] About using IUP.Text:action in Lua

2018-01-17 Thread Hernan Cano
Oh, Pete, very good. I'll see this repository Thanks. 2018-01-17 2:05 GMT-05:00 Pete Lomax: > Hi there Hernan, > You might want to visit https://bitbucket.org/petelomax/phix/src and then > click on demo, rosetta, 7guis > > Although written in a different language, all 7 entries are completed. >

Re: [Iup-users] About using IUP.Text:action in Lua

2018-01-17 Thread Hernan Cano
Fine, Antonio. Thanks. 2018-01-17 5:42 GMT-05:00 Antonio Scuri: > The action callback is called during value modification, so if you consult > the attribute during the callback it will return the old value. The new > value is passed as a parameter in the callback. > -

Re: [Iup-users] About using IUP.Text:action in Lua

2018-01-17 Thread Antonio Scuri
The action callback is called during value modification, so if you consult the attribute during the callback it will return the old value. The new value is passed as a parameter in the callback. So you should change your code to: function txtC:action(c, new_value) if new_value and tonum

Re: [Iup-users] About using IUP.Text:action in Lua

2018-01-16 Thread Pete Lomax via Iup-users
Hi there Hernan, You might want to visit https://bitbucket.org/petelomax/phix/src and then click on demo, rosetta, 7guis Although written in a different language, all 7 entries are completed. The temperature converter is named Converter.exw, and I used the valuechanged callback to achieve the d