How do I detect changed have been made |
Post Reply |
Author | |
jads
Groupie Joined: 26 August 2008 Status: Offline Points: 32 |
Post Options
Thanks(0)
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 |
|
joeliner
Senior Member Joined: 09 June 2006 Status: Offline Points: 273 |
Post Options
Thanks(0)
|
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 |
|
jads
Groupie Joined: 26 August 2008 Status: Offline Points: 32 |
Post Options
Thanks(0)
|
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 |
|
joeliner
Senior Member Joined: 09 June 2006 Status: Offline Points: 273 |
Post Options
Thanks(0)
|
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 |
|
jads
Groupie Joined: 26 August 2008 Status: Offline Points: 32 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |