Solved

how to reactivate the application.onhint proc

Posted on 1997-05-30
6
544 Views
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?
0
Comment
Question by:ywoedta
  • 3
  • 3
6 Comments
 
LVL 1

Expert Comment

by:ozzy
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 form2.show should remove them from the mainform.
0
 
LVL 1

Author Comment

by:ywoedta
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 out.....my hints pop up in a status panel on the main form, but i want regular (ie, little floating windows) hints on the secondary form.....
0
 
LVL 1

Accepted Solution

by:
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.  :-)
0
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 1

Author Comment

by:ywoedta
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?
0
 
LVL 1

Expert Comment

by:ozzy
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.
0
 
LVL 1

Author Comment

by:ywoedta
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
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

770 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