how to reactivate the application.onhint proc

Posted on 1997-05-30
Last Modified: 2006-11-17
i have rerouted the application.onhint procedure through my
own TNotifyEvent, but i can't figure out how to put it back
for later use in the same program... (the main form has the
hints running to a status bar, whereas i need the hints on
another form to run as normal.....what's the trick i am overlooking?
Question by:ywoedta
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3

Expert Comment

ID: 1336679
Before activating the form, can't you simply set the showhints flag to false for the mainform, then call the form.  On return you set the mainform's showhint back to true.

This is what I understand that you want to do.....
One form is showing hints along with the mainform.  When you call another form, you do NOT want them to show up on the mainform.

Disabling them before calling the should remove them from the mainform.

Author Comment

ID: 1336680
sorry about the f, ozzy - but that's not what i had in mind.  look up the application.onhint event and check it hints pop up in a status panel on the main form, but i want regular (ie, little floating windows) hints on the secondary form.....

Accepted Solution

ozzy earned 100 total points
ID: 1336681
Setting each control's onhint flag to true will make the yellow popup's show up again.  Each panel, label, button, etc. has a showhint flag that needs to be set to true.  Then the yellow window will show up again.
BTW, feel free to give another 'f' if this is still not the idea you are looking for.  I am not easily offended.  :-)
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 1336682
hehhe - i wil give you an "A" for effort since i am drunk and it doesn't matter anyways. =]  I am not easily offended, either.... and, unfortunately, my project is at work... so i can't chekc out your answer currently... i wil do so on monday. ;] so you say even though the hint value is set to true already, if i set it to true again once i have usd the line of code "application.onhint := myhintproc" it will reproduce the yellow hint boxes?

Expert Comment

ID: 1336683
What you should also do, is call the default event handler in your handler if you want the hint to appear.  That way it will show them when it does it's default handling of the event.

Author Comment

ID: 1336684
wel, see - i may not understand tour fix since i anm drunk and cannot even type at this point, but here goes:
at my main form's create event, i run the line of code :
   application.onhint := myhintproc;
now how would i reverse that decision to get my secondary formn to show hints as normal?? you said to set it to the default, but i don't know how since i am lame =] gimme a line of code to set it back, if you would be so gracious =P

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question