Solved

how to reactivate the application.onhint proc

Posted on 1997-05-30
6
547 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
[X]
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
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
Industry Leaders: 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!

 
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

Industry Leaders: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to center only a line in richedit? 4 69
Delphi...Split view - idea? 1 113
update joined tables 2 62
Delphi Firemonkey send email on Android 1 38
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

740 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