Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » How do I override the Button class Tip handling function
How do I override the Button class Tip handling function [message #61682] Fri, 16 May 2025 17:53 Go to next message
awksed is currently offline  awksed
Messages: 70
Registered: April 2012
Member
I wish to override the Button class tip display function so I can show different tips according to the data available.

I cannot find the function that handles showing the tip on hovering over the button in order to override it in my button subclass.

Thanks.

Re: How do I override the Button class Tip handling function [message #61683 is a reply to message #61682] Sat, 17 May 2025 10:18 Go to previous messageGo to next message
Oblivion is currently offline  Oblivion
Messages: 1209
Registered: August 2007
Senior Contributor
Hi awksed,

The function you are looking for is Ctrl::Tip().,
You don't need to override it and you can't anyway, it is not virtual.
Just set the text according to your need/data, e.g:

    button.Tip("This is a tooltip");


Note that, you can use Qtf with tips. (just prepend "\1" to string).

Best regards,
Oblivion


Re: How do I override the Button class Tip handling function [message #61684 is a reply to message #61683] Sat, 17 May 2025 22:42 Go to previous message
awksed is currently offline  awksed
Messages: 70
Registered: April 2012
Member
Hi Oblivion,

Thank you for your reply.

For the sake clarity the question was not how do I set the tip text (which is well documented) but which function, presumably within Ctrl, handles the hover and displays the tip message.

Regards,

awksed
Previous Topic: Adding GetCount/NumBytes to Buffer?
Next Topic: Add compilable testcases for nontrivial problems!
Goto Forum:
  


Current Time: Sun Jun 01 17:31:04 CEST 2025

Total time taken to generate the page: 0.01814 seconds