Solved

how to reactivate the application.onhint proc

Posted on 1997-05-30
6
539 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 1

Author Comment

by:ywoedta
Comment Utility
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
Comment Utility
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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now