My hoverIcon will not display
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
My hoverIcon will not display
Greetings All,
Per the LC Dictionary, the hoverIcon property "Specifies an image to display in a button when the mouse pointer enters the button."
Attached is a very simple stack: One button, two images, and no scripts.
When the mouse enters the button, the hoverIcon image is not displayed [Win 10, LC9.6.9].
What am I missing?
Rob
Per the LC Dictionary, the hoverIcon property "Specifies an image to display in a button when the mouse pointer enters the button."
Attached is a very simple stack: One button, two images, and no scripts.
When the mouse enters the button, the hoverIcon image is not displayed [Win 10, LC9.6.9].
What am I missing?
Rob
- Attachments
-
- Hover Test.zip
- (2.84 KiB) Downloaded 66 times
Rob Cozens dba Serendipity Software Company
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.
Re: My hoverIcon will not display
Hi Rob,
doesn't work on my Mac, too!?
However a quick test with a new stack and some of the built-in icons DOES in fact work!?
Too funky...
Best
Klaus
doesn't work on my Mac, too!?
However a quick test with a new stack and some of the built-in icons DOES in fact work!?
Too funky...
Best
Klaus
-
- Livecode Opensource Backer
- Posts: 9389
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: My hoverIcon will not display
Whether my pointer is IN or OUT of the target I ALWAYS get this:
- -
This helps me understand what you are expecting:
- -
"The hoverIcon is displayed when the mouse pointer is over the button, but the button is not hilited."
Um, I wonder if, for some reason best known unto someone, somewhere, if as soon as we mouseOver a
button it becomes hilited?
- -
This helps me understand what you are expecting:
- -
"The hoverIcon is displayed when the mouse pointer is over the button, but the button is not hilited."
Um, I wonder if, for some reason best known unto someone, somewhere, if as soon as we mouseOver a
button it becomes hilited?
-
- Livecode Opensource Backer
- Posts: 9389
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: My hoverIcon will not display
OK, OK, I was talking crap [wouldn't be the first time!]:
- -
Just possibly, you're having a problem with GIF images!
- -
So, I'm going to play 'silly buggers' like this:
-
- -
Just possibly, you're having a problem with GIF images!
- -
So, I'm going to play 'silly buggers' like this:
-
-
- Livecode Opensource Backer
- Posts: 9389
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: My hoverIcon will not display
Now, let's see what a tweak or 2 does:
- -
Nothing whatsoever.
This does NOT work even for built-in icons"
-
- -
Nothing whatsoever.
This does NOT work even for built-in icons"
-
Last edited by richmond62 on Wed Apr 26, 2023 9:07 pm, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 9389
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: My hoverIcon will not display
This has NOT been working for quite some time:
- -
As LC is chock full of bugs and 'work around' is now a bone stuck in almost every developer's throat, wouldn't
it be a good idea to STOP development of everything and KILL all those bugs completely?
- -
As LC is chock full of bugs and 'work around' is now a bone stuck in almost every developer's throat, wouldn't
it be a good idea to STOP development of everything and KILL all those bugs completely?
Re: My hoverIcon will not display
So the autoArm property of that button has been set to true - which is why there is no hoverIcon displaying.
Can you remember how you created it? Or indeed how that property got set?
[ FWIW, the autoArm property enables very specific and quite subtle behavior which is used for the buttons the engine creates to implement menus on Windows and Linux ]
-
- Livecode Opensource Backer
- Posts: 9389
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: My hoverIcon will not display
Well, I don't know about the OP, but I am most definitely missing something as I cannot for the
life of me work out where I would find the autoArm prop. in the props palette.
Although what you state is, inevitably, correct:
- -
and I did learn that autoArm is set to false by default:
- -
and that the OP's problem can be sorted out very quickly:
- -
life of me work out where I would find the autoArm prop. in the props palette.
Although what you state is, inevitably, correct:
- -
and I did learn that autoArm is set to false by default:
- -
and that the OP's problem can be sorted out very quickly:
- -
That is extremely queer.Can you remember how you created it? Or indeed how that property got set?
Re: My hoverIcon will not display
Indeed - that's why I'm curious as to how a button ended up with it being set to true.richmond62 wrote: ↑Wed Apr 26, 2023 7:43 pmWell, I don't know about the OP, but I am most definitely missing something as I cannot for the
life of me work out where I would find the autoArm prop. in the props palette.
The property has never been exposed as a property in the property inspector because it causes buttons to have very specific and subtle behavior - tuned for the purposes of the engine using it to build the menus you see on Linux and Windows (and on macOS too - when you have the native theme turned off).
I'm sure there are a few who have employed its rather arcane properties to good use outwith that - however, for most of us, it is something best left well alone
Re: My hoverIcon will not display
Hm, in my above metioned test I created a stack, dragged a button from the tools palette,
set the two icons for icon and hovericon and it worked right out of the box.
I did not set any properties for the button!?
set the two icons for icon and hovericon and it worked right out of the box.
I did not set any properties for the button!?
- Attachments
-
- hovertest_km.livecode.zip
- (623 Bytes) Downloaded 56 times
-
- Livecode Opensource Backer
- Posts: 9389
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: My hoverIcon will not display
Read the previous postings.I did not set any properties for the button!?
Re: My hoverIcon will not display
Ah, sorry, missed Mark's first answer...
Re: My hoverIcon will not display
You're the man, Mark!
The button was copied from a HyperCard stack that was converted to LC (actually RunRev at the time) many years ago. Then when I researched this problem I confused the autoArm property with the autoHilite property which I had already found not to help.
I will be eternally grateful for your finding my error. I had just changed all the buttons in my app to use the hoverIcon instead of the armedIcon based on guidance from the LC Dictionary. Now I won't have to change them back....just reset that property.
Many thanks,...and thanks to all who responded.
Rob
Rob Cozens dba Serendipity Software Company
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.
Re: My hoverIcon will not display
Woe is me!
This worked fine in the example stack I uploaded; but after resetting the autoArm property of all my buttons they still won't display the hoverIcon on mouseEnter. Is it possible that there is something else about my stack's HyperCard heritage that is blocking this? I just looked at the lists of stack & button properties, but nothing jumps out as the possible culprit.
Rob
Rob Cozens dba Serendipity Software Company
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.
Re: My hoverIcon will not display
A little further info:
Now that the buttons' autoArm property is false, the hoverIcons are being displayed on mouseUp.
??
Now that the buttons' autoArm property is false, the hoverIcons are being displayed on mouseUp.
??
Rob Cozens dba Serendipity Software Company
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.