getLastKeyModifiers()

will not report the modifier key, when “showClick” property is disabled. All of my icon buttons have “showClick” disabled for space issues and to get a consistent look on all platforms.

Windows XP, SP2
Java 1.5_01
Servoy 2.1.2

Yes, same here. Can this be fixed? I really don’t like to use the showClick property…

Is this issue considered at this point in time? I need the key modifier without the showClick.

The space issue can simply be solved by setting the margin to 0,0,0,0.

The space issue can simply be solved by setting the margin to 0,0,0,0.

Thanks for tip but this won’t help. I don’t want to show the LAF buttons around an icon. Only showClick = false will do that.

Hello,

I just ran into this again. I let my method output the pressedKey via application.output. Here’s what I observed:

  • if showClick on the button is disabled, getLastKeyModifiers returns always 16 when the form is shown inDialog :?
  • if showClick on the button is disabled, getLastKeyModifiers returns always 0 when the form is shown directly :?
  • if showClick is enabled, getLastKeyModifiers always returns the expected value

Is there a fix for this in the near future?

thertzler:

The space issue can simply be solved by setting the margin to 0,0,0,0.

Thanks for tip but this won’t help. I don’t want to show the LAF buttons around an icon. Only showClick = false will do that.

Won’t setting the borderType to Empty solve this issue ?
Haven’t tried it, just thinking outloud.

Even if that works, my findings remain strange…

Won’t setting the borderType to Empty solve this issue ?
Haven’t tried it, just thinking outloud.

No, not when you use Windows (XP) LnF :(

I wish Servoy would clean up all those layout/design issues. It frustrates the hell out of me to get something to work and then find out that it only works on platform X with this LnF Y.

I guess you have to complain with Sun for those issues…

I guess you have to complain with Sun for those issues…

No offense, but I have a customer-vendor relationship with Servoy - not Sun. We all work with customers every day and in my experience it doesn’t make them any happier if you blame a problem on the next guy. But I am ranting again…

I see your point. But since you are using a Java software, you have to live with Java shortcomings (actually I would believe they call that a feature). So if that is a real problem for you, you chose the wrong software…