Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Syntax Edit
  New Posts New Posts RSS Feed - How do I detect changed have been made
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How do I detect changed have been made

 Post Reply Post Reply
Author
Message
jads View Drop Down
Groupie
Groupie


Joined: 26 August 2008
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote jads Quote  Post ReplyReply Direct Link To This Post Topic: How do I detect changed have been made
    Posted: 12 June 2009 at 5:13am
Is there changes made property or change event or similar so that I can determine if the text in the control has been altered since loading. Useful when exiting the program so that the user can be asked if changes made are to be saved. The key press event isnt enough as not all keys change the text and other events can also change the text.
Product: Xtreme SuitePro (ActiveX) version 13.4.0
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0 SP6
Back to Top
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post Posted: 15 June 2009 at 8:04am
Hi jads,

maybe try the event CurPosChanged of the SyntaxEdit and the undobuffer.

Logic:
if the syntaxEdit.canUndo = True then changes have been made to the document

Limitation:
Not all changes are stored on the undo buffer esp if you use:

a) Insertrow to add text into specific row
b) Change the text in runtime by code: e.g syntaxedit.Text = "Text"

regards,

Product: Xtreme SuitePro (ActiveX) version 13.1
Platform: Windows XP SP 3
Language: Visual Basic 6 SP6
Back to Top
jads View Drop Down
Groupie
Groupie


Joined: 26 August 2008
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote jads Quote  Post ReplyReply Direct Link To This Post Posted: 16 June 2009 at 11:52pm
Thanks for that, It will help.
Product: Xtreme SuitePro (ActiveX) version 13.4.0
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0 SP6
Back to Top
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post Posted: 17 June 2009 at 7:46am
Hey jads,

with 13.1 comes the TextChanged event that might work better for you!

regards,

Product: Xtreme SuitePro (ActiveX) version 13.1
Platform: Windows XP SP 3
Language: Visual Basic 6 SP6
Back to Top
jads View Drop Down
Groupie
Groupie


Joined: 26 August 2008
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote jads Quote  Post ReplyReply Direct Link To This Post Posted: 17 June 2009 at 7:34pm
That looks like it will do the job, thanks
Product: Xtreme SuitePro (ActiveX) version 13.4.0
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0 SP6
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.