Kevin Burge wrote:
> Anybody know how to override the tip text for an FXIconList? Tried
> handling ID_QUERY_TIP (happens only when the mouse first enters the
> list), and FXIconList::ID_TIPTIMER and FXIconList::ID_LOOKUPTIMER to
> no avail. Tried descending from onTipTimer, and that doesn't work
> either.
>
> I'm getting the impression that if a control already handle's a
> message, then it can never be handled by a descendant control......????
>
I override the onQueryTip method to suppress the tooltip. I don't know
if this might give a clue as to how to do what you want.
I have to thank Lyle for this tip.
Here's an example of the code I use:
class IconList < FXIconList
def initialize(*args)
super(*args)
FXMAPFUNC(SEL_UPDATE, FXIconList::ID_QUERY_TIP, :onQueryTip)
end
# Suppress the tooltip...
def onQueryTip(sender, sel, ptr)
return 0
end
end
Jamey
Confidentiality Notice: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information. If you are not the intended recipient(s), you are hereby notified that any dissemination, unauthorized review, use, disclosure or distribution of this email and any materials contained in any attachments is prohibited. If you receive this message in error, or are not the intended recipient(s), please immediately notify the sender by email and destroy all copies of the original message, including attachments.
|