The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => Easy Code => Topic started by: Bieb on December 25, 2004, 03:38:16 AM

Title: Editbox Control
Post by: Bieb on December 25, 2004, 03:38:16 AM
Okay, I've learned the basics of messaging with controls, and learned how to get a controls window handle, and use that handle with the Easy Code property set and get macros, but now I'm having a problem with the edit box control.  I use the GetText macro, and it always returns the original text property value that was set at design time, even if the user has typed different text into the edit box.  Do I need to interpret some messages and manually change this value?  If so, how?

And, by the way...
MERRY CHRISTMAS!
And a happy Wintereenmas to all!
Title: Re: Editbox Control
Post by: John on December 25, 2004, 03:56:13 AM
I don't know anything about Easy Code, sorry. You should be able to get the text of the control using GetWindowText (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/getwindowtext.asp) though provided you have the handle to the control.

This would also be covered in tutorial #9 by Iczelion:
http://spiff.tripnet.se/~iczelion/tut9.html
Title: Re: Editbox Control
Post by: Ramon Sala on December 25, 2004, 09:11:08 AM
Hi Bieb,

As John said, you can get the text of a control by using GetWindowText. Anyway, GetText should work okay too. If it doesn't, there is probably a bug. I'll have a look at the code and fix what is wrong.

Regards,

Ramon