Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

how to reactivate the application.onhint proc

Posted on 1997-05-30
6
Medium Priority
?
553 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 400 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
Independent Software Vendors: 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

604 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