Click here to Skip to main content
Licence 
First Posted 17 Nov 1999
Views 50,226
Bookmarked 33 times

Improved Tip-of-the-Day Dialog

By Robert Pittenger, MCPD-EAD | 17 Nov 1999

1

2

3
1 vote, 100.0%
4

5
4.17/5 - 9 votes
μ 4.17, σa 5.00 [?]
  • Download demo project - 149 Kb
  • Sample Image

    The standard Tip of the Day dialog that comes as a Visual C++ component looks pretty poor. Also, one of my biggest complaints about Tip of the Day dialogs is that you can not get a more detailed explanation of a tip through the help system. This dialog provides a Tip of the Day dialog with improved appearance, as well as context senstivie help support for each tip.

    This Improved Tip Dialog has the following features:

    • The dialog appearance is improved.
    • You can add a help context number for each tip. If there is a context number, the "Tell Me More" button is enabled. If the user clicks on the "Tell Me More" button, the program executes WinHelp for that context number. If there is no number for the tip, the "Tell Me More" button is disabled.
    • You can provide a different caption for each tip.
    • You can provide footnote for each tip.
    • If you use a standard tip file (ASCII text), you get the default Tip dialog behavior, so you don't have to support the extra features if you don't want to.

    How to Use the Dialog

    It is a little tricky to get this dialog into your project. The best thing to do is insert the standard Tip dialog component that comes with VC++, and then replace it with this Tip dialog. This way, VC++ will add the required menu items for you.

    1. Insert the standard VC++ Tip dialog into your project.
    2. Replace the standard TipDlg.cpp and TipDlg.h files with the files from this project.
    3. Write your tip file. The Tip file starts as a standard ASCII text tip file, but each line uses tabs to separate the different items for each tip. There are four items on each line, each separated by a tab character. The first item on each line is the tip text. The second item is the caption. The third item is the footnote. The fourth item is the help context number. Only the first item is required.
    4. Place your tip file in the same directory as your program executable.

    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here

    About the Author

    Robert Pittenger, MCPD-EAD

    President
    Starpoint Software Inc.
    United States United States

    Member
    Bob Pittenger is founder and President of Starpoint Software Inc. He holds a B.A. degree from Miami University, M.S. and Ph.D. degrees from Purdue University, and an MBA from Xavier University. He has been programming since 1993, starting with Windows application development in C++/MFC and moving to C# and .NET around 2005 and is a .NET Microsoft Certified Professional Developer.
     
    Bob is the author of two books:
    Billionaire: How the Ultra-Rich Built Their Fortunes Through Good and Evil and What You Can Learn from Them
    and
    Wealthonomics: The Most Important Economic and Financial Concepts that Can Make You Rich Fast.
    Visit http://www.billionairebook.net for more information.

    Sign Up to vote   Poor Excellent
    Add a reason or comment to your vote: x
    Votes of 3 or less require a comment

    Comments and Discussions

     
    You must Sign In to use this message board. (secure sign-in)
     
    Search this forum  
     FAQ
        Noise  Layout  Per page   
      Refresh
    GeneralFlickering PinmemberGregH8:20 4 Feb '04  
    GeneralGetting dialog into project... PinsussBill Roach10:36 1 Mar '00  

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    Permalink | Advertise | Privacy | Mobile
    Web02 | 2.5.120209.1 | Last Updated 18 Nov 1999
    Article Copyright 1999 by Robert Pittenger, MCPD-EAD
    Everything else Copyright © CodeProject, 1999-2012
    Terms of Use
    Layout: fixed | fluid