Hello,
Maybe I'm wrong, but I cannot get an Image cleared.
I made a button with this code:
on mouseUp pButtonNumber
   put empty into image "imgOne" of card "crd1"of stack "stckPicDelete"
end mouseUp
but nothing happens!
Any Thoughts?
Dirk
			
							Cear picture does not work?
Moderator: Klaus
- 
				dbeugeling
- Posts: 12
- Joined: Thu Feb 12, 2015 12:22 pm
Cear picture does not work?
- Attachments
- 
			
		
		
				- PicDelete.livecode.zip
- (1.62 KiB) Downloaded 226 times
 
- 
				richmond62
- Livecode Opensource Backer 
- Posts: 10202
- Joined: Fri Feb 19, 2010 10:17 am
Re: Clear picture does not work?
Well, I have just spent 15 minutes messing around and am getting nowhere, so I have a very silly suggestion as to how this might be solved:
- -
Oh, and while I am 'here': please try to put bits of code in your messages like this:
-
			
							- -
Code: Select all
on mouseUp
   put the width of img "imgOne" into WIDD
   put the height of img "imgOne" into HITE
   delete img "imgOne"
   create image
   set the name of the last image to "imgOne"
   set the showBorder of img "imgOne" to true
   set the width of img "imgOne" to WIDD
   set the height of img "imgOne" to HITE
   set the loc of img "imgOne" to 200,145
end mouseUp
-
- Attachments
- 
			
		
		
				- imageDelete.zip
- Stack.
- (117.06 KiB) Downloaded 240 times
 
Re: Cear picture does not work?
Hi Dirk
This works in that case:
Best
Klaus
			
			
									
									
						that only works for IMPORTED images, but you have a REFERENCED image on your card.dbeugeling wrote: ↑Fri May 26, 2023 11:13 amCode: Select all
on mouseUp pButtonNumber put empty into image "imgOne" of card "crd1"of stack "stckPicDelete" end mouseUp
This works in that case:
Code: Select all
...
set the filename of img "your pic" to EMPTY
...Klaus
- 
				dbeugeling
- Posts: 12
- Joined: Thu Feb 12, 2015 12:22 pm
Re: Cear picture does not work?
Hello Klaus,
Thank you for your fast reply!
Dirk
			
			
									
									
						Thank you for your fast reply!
Dirk
Re: Cear picture does not work?
Graag gedaan, Dirk! 
			
			
									
									
						