How to get the value of mouseclick over image in field
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
How to get the value of mouseclick over image in field
Hi,
I want to know the mouseclicked is over the image (close icon) or not?, is there any command for this?
I am attaching the stack. My wish is to, when i click over the image in field then the line will delete.
Please find the attached zip, so you can easly understand, what i really want to do
Thanks
Samjith
I want to know the mouseclicked is over the image (close icon) or not?, is there any command for this?
I am attaching the stack. My wish is to, when i click over the image in field then the line will delete.
Please find the attached zip, so you can easly understand, what i really want to do
Thanks
Samjith
- Attachments
-
- dropdown.zip
- (6.93 KiB) Downloaded 215 times
Re: How to get the value of mouseclick over image in field
Hi samjith,
hmmm, it IS a bit difficult to do this (...when i CLICK over the image in field then the line will delete..."
in a field that has this script:
Remember "click" means MOUSEUP"
So this is actually IMPOSSIBLE!
And your "turbulent" design makes me nervous actually
But basically you want this:
User clicks the little icon in a line to delete that line, correct?
Then you should check if the character under the mouse has an "imagesource" property or not.
Add something like this:
Best
Klaus
hmmm, it IS a bit difficult to do this (...when i CLICK over the image in field then the line will delete..."
in a field that has this script:
Code: Select all
on mousedown
...
hide me
...
end mousedown

So this is actually IMPOSSIBLE!
And your "turbulent" design makes me nervous actually

But basically you want this:
User clicks the little icon in a line to delete that line, correct?
Then you should check if the character under the mouse has an "imagesource" property or not.
Add something like this:
Code: Select all
...
## We clicked an icon in the text
if the imagesource of the clickcharchunk <> EMPTY then
delete ...
end if
...
Klaus
Re: How to get the value of mouseclick over image in field
Hi Klaus,
Ya worked fine,
Actually, I am stucked from morning at this point, really great.
How you know all these things?
Did you ate anything special to increase your mental strength?
Thanks
Samjith
Ya worked fine,
Actually, I am stucked from morning at this point, really great.
How you know all these things?

Did you ate anything special to increase your mental strength?

Thanks
Samjith
Re: How to get the value of mouseclick over image in field
Namaste samjith,
and I have a very very good memory.
Best
Klaus
I am working with LC and its ancestors Runtime Revolution and Metacard since 1999samjith wrote:How you know all these things?![]()
and I have a very very good memory.
No, I was just born clever!samjith wrote:Did you ate anything special to increase your mental strength?

Best
Klaus
Re: How to get the value of mouseclick over image in field
Hi,
hmmm. At that time, i was only age 9
Thanks
Samjith
hmmm. At that time, i was only age 9

Thanks
Samjith
Re: How to get the value of mouseclick over image in field
Even dwarfs started small! 

-
- Livecode Opensource Backer
- Posts: 10100
- Joined: Fri Feb 19, 2010 10:17 am
-
- Livecode Opensource Backer
- Posts: 10100
- Joined: Fri Feb 19, 2010 10:17 am
Re: How to get the value of mouseclick over image in field
Here's something to play with:
- Attachments
-
- Click Clack.zip
- Here's the stack.
- (2.69 KiB) Downloaded 226 times
Re: How to get the value of mouseclick over image in field
Nice, Richmond, very nice, but we already solved his problem yesterday! 

-
- Livecode Opensource Backer
- Posts: 10100
- Joined: Fri Feb 19, 2010 10:17 am
Re: How to get the value of mouseclick over image in field
Yer: yesterday was my day off.
Re: How to get the value of mouseclick over image in field
OK, but it has been documented right here also!richmond62 wrote:Yer: yesterday was my day off.

Re: How to get the value of mouseclick over image in field
Hi,
Thank you both of you, sucessfully completed the task, but have problem.
Please have a look
http://forums.livecode.com/viewtopic.php?f=7&t=25796
Thanks
Samjith
Thank you both of you, sucessfully completed the task, but have problem.
Please have a look
http://forums.livecode.com/viewtopic.php?f=7&t=25796
Thanks
Samjith