Detecting changes to editorgadget
- 
				PB&J Lover
 - Enthusiast

 - Posts: 212
 - Joined: Fri Apr 22, 2005 2:07 pm
 - Location: U.S.A.
 - Contact:
 
Detecting changes to editorgadget
How does one detect changes to an editorgadget?  
			
			
									
									-- DB
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.
Albert Einstein
						Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.
Albert Einstein
Code: Select all
SendMessage_(GadgetID(Gadget), #EM_GETMODIFY, #Null, #Null)Code: Select all
SendMessage_(GadgetID(Gadget), #EM_SETMODIFY, #True, #Null)Code: Select all
SendMessage_(GadgetID(Gadget), #EM_SETMODIFY, #False, #Null)PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

						Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

- 
				PB&J Lover
 - Enthusiast

 - Posts: 212
 - Joined: Fri Apr 22, 2005 2:07 pm
 - Location: U.S.A.
 - Contact:
 
follow up
I'm not sure how to use this (I'm new to using Editorgadgets).
Something like?
Do I need to scan for this message? Is it a Windowevent?  
			
			
									
									Something like?
Code: Select all
result.l = SendMessage_(GadgetID(Gadget), #EM_GETMODIFY, #Null, #Null)-- DB
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.
Albert Einstein
						Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.
Albert Einstein
>> Is it a Windowevent?
no
Example: User close window, you can test saving required
			
			
									
									no
Example: User close window, you can test saving required
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

						Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

- 
				PB&J Lover
 - Enthusiast

 - Posts: 212
 - Joined: Fri Apr 22, 2005 2:07 pm
 - Location: U.S.A.
 - Contact:
 
