PDA

View Full Version : Setting z-order for buttons


kmartin7
08-23-2004, 01:31 PM
I have a button that is either enabled or disabled depending on whether or not the Adobe SVG viewer is installed. I want to display a tool tip depending on state. I can do this with a hotspot that is disabled when the button is enabled and vice versa IF I can figure out how to set z-order. The way it is now the object that is higher in z-order always displays the tool tip regardless of what state it is in.

TIA,

Kurt

JimS
08-23-2004, 02:29 PM
Kurt,
I’m sorry, in your last thread I gave you some bad advice. It seems like the hotspot above the button should work, but as Yosik pointed out, it doesn’t. Both Ron (rhosk) and Yosik suggested a way that does work, using two buttons stacked on each other. I built a sample project, but when I reviewed your last thread, I saw that Yosik provided a sample project also, since they are virtually identical, there is no reason to upload my example.

Give Yosik’s example a try, and post back if you have any questions.

Again, I’m sorry I gave you bum advice, I should have actually tried it myself before I opened my mouth.

kmartin7
08-23-2004, 03:09 PM
I just decided to use buttons and setVisibility depending on state. I still appreciate your help, irregardless. Thanks.