Maybe related to skinning - Solved
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Maybe related to skinning - Solved
What do I need to do to be able to activate the code within a field that has a graphic covering the field?
Attached a very simple stack to better describe the challenge.
Thanks,
David
Attached a very simple stack to better describe the challenge.
Thanks,
David
- Attachments
-
- Test_1.livecode.zip
- (1.35 KiB) Downloaded 196 times
Last edited by DR White on Mon Aug 07, 2017 8:22 pm, edited 1 time in total.
Re: Maybe related to skinning
Hi David,
I disabled graphic which cover field and it works
Best regards
Jean-Marc
I disabled graphic which cover field and it works
Best regards
Jean-Marc
https://alternatic.ch
Re: Maybe related to skinning
Jean-Marc,
Sorry to bother you on something so simple,
but I had beat my for a couple hours and was not making any headway.
Thank goodness for this forum!
Disabling the graphic took care of it.
Thanks so much,
David
Sorry to bother you on something so simple,
but I had beat my for a couple hours and was not making any headway.
Thank goodness for this forum!
Disabling the graphic took care of it.
Thanks so much,
David
Re: Maybe related to skinning - Solved
Hi David
You also may use loop to know which field is under the mouseloc.
Something like that:
graphic script
card script
Jean-Marc
I hope it is not too simpleSorry to bother you on something so simple,
You also may use loop to know which field is under the mouseloc.
Something like that:
graphic script
Code: Select all
on mouseup
get getMyControlML()
send "mouseup" to fld it
end mouseup
Code: Select all
on mouseup
put the short name of the target into tNameTarget
if "fMyField" is in the short name of the target then
get getMyFldML()
put fld it into fld "Display"
end if
end mouseup
function getMyFldML
repeat with i = 1 to 3
put "fMyField" & i into tFld
if the mouseloc is within the rect of fld tFld then
return tFld
exît repeat
end if
end repeat
end getMyFldML
https://alternatic.ch
Re: Maybe related to skinning - Solved
Jean-Marc's script works but now we have controlAtLoc() which is easier:
put controlAtLoc(the mouseloc)
put controlAtLoc(the mouseloc)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Maybe related to skinning - Solved
Hi Jacqueline,
Two times i forget controlAtLoc.
In this case it doesn't work because there is a grc on top
Lucky day for me with 825 as result on Klondike
Two times i forget controlAtLoc.

In this case it doesn't work because there is a grc on top
Lucky day for me with 825 as result on Klondike

https://alternatic.ch
Re: Maybe related to skinning - Solved
Yes, you're right. I forgot about the stacked controls, so we both have memory problems. 
It's nice to hear my old Klondike stack is still in use and is working after all the engine revisions. I wrote it in MetaCard! The LC team has done a great job with backward compatibility.

It's nice to hear my old Klondike stack is still in use and is working after all the engine revisions. I wrote it in MetaCard! The LC team has done a great job with backward compatibility.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com