Author Topic: Need help in ToolTip implementation  (Read 6316 times)

hariprasad787

  • Guest
Need help in ToolTip implementation
« on: July 09, 2013, 04:21:19 AM »
Hello,

As per the documentation,

void OnHover (bool isOver) – Sent out when the mouse hovers over the collider or moves away from it. Not sent on touch-based devices.

We need to show tooltip on the touch based devices also. Is there any possibility to implement the tooltip on the touch based devices?

Please some one guide me in this regard.


Thanks,
ToxicAlien

Malzbier

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 93
    • View Profile
Re: Need help in ToolTip implementation
« Reply #1 on: July 09, 2013, 05:12:49 AM »
The problem is on a touch base device there is not mouse -> Not mouse that can hover over an element  -> no OnHover event.

hariprasad787

  • Guest
Re: Need help in ToolTip implementation
« Reply #2 on: July 09, 2013, 05:19:36 AM »
Hello Malzbier,

Thanks, for the reply.

Is it possible to do the same onPress event only for the touch based devices some workaround for that? 

Thanks,
Hari



ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Need help in ToolTip implementation
« Reply #3 on: July 09, 2013, 08:35:44 AM »
Display your tooltip as a result of a press instead of a hover event. Just implement your logic inside OnPress(true).