lua-users home
lua-l archive

RE: BUG? , iup.GetParam , the string input value maybe append '\n' when press RETURN key.

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Yes, it was a bug. It is already fixed on IUP CVS.

Thanks for reporting anyway.

Best Regards,

Antonio Scuri

From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] On Behalf Of zcs_chenxiao
Sent: quinta-feira, 19 de abril de 2012 05:28
To: Lua mailing list
Subject: BUG? , iup.GetParam , the string input value maybe append '\n' when press RETURN key.

require( "iuplua" )
require( "iupluacontrols" )
res, name = iup.GetParam("Title", nil,
  "Give your name: %s\n","")
iup.Message("Hello!",name)

win32 env:

if I input value 'a', and press return, then name value is 'a\n' not 'a'

if i click ok button , then value is 'a'. It's ok.


AltStyle によって変換されたページ (->オリジナル) /