wxTextCtrl question/issue

That's my point. It should be false for both cases but it is only false for
the second. This is causing me some significant headaches at the moment.

···

-----Original Message-----
From: Scott MacKay [mailto:scottmackay@yahoo.com]
Sent: Thursday, January 30, 2003 9:30 AM
To: wxPython-users@lists.wxwindows.org
Subject: Re: [wxPython-users] wxTextCtrl question/issue

Actually, I think it should be returning false for
both cases accourding to the online docs. SetValue()
should change the IsModified to false always.
(http://www.lpthe.jussieu.fr/~zeitlin/wxWindows/docs/wxwin384.htm#wxtextctrl
setvalue)

-Scott

--- "Zatz, Steve" <SZatz@exchange.webmd.net> wrote:

tc = wxTextCtrl(...)
val = tc.GetValue()
tc.SetValue(val)
tc.IsModified()
1

tc = wxTextCtrl(...)
val = tc.GetValue()
tc.SetValue(val+" ")
tc.IsModified()
0

Not sure what it is about the string referenced by
GetValue but when used by
SetValue the method IsModified does not appear to
return the correct value.
Creating a new string as in the second example works
fine. Perhaps I am
missing something so any help would be appreciated.

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org