On Click show ToolTip

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ali Rizwan
    Banned
    Contributor
    • Aug 2007
    • 931

    On Click show ToolTip

    Hi all,
    I want to show tooltip when i click on a button.
    And how can i show a multiline tooltip?
    Thanx.
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by Ali Rizwan
    I want to show tooltip when I click on a button.
    And how can I show a multiline tooltip?
    I don't think you have any control over the formatting of a tooltip. VB (or Windows) just wraps it as required.

    I think you also don't have much (if any) control over how/when to display them. If you want finer control over this stuff, then I guess you'll need to create your own by popping up a little window.

    Let's see... I guess it would need to have Enabled = False so the user can't interact with it, and also be set to "stay on top" - I think you have to do an API call for that.

    Comment

    • hariharanmca
      Top Contributor
      • Dec 2006
      • 1977

      #3
      Originally posted by Ali Rizwan
      Hi all,
      I want to show tooltip when i click on a button.
      And how can i show a multiline tooltip?
      Thanx.
      That doesn’t have any sense. When you click the command button then your command will be triggered. No use of showing tool tip after command executed.

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by hariharanmca
        That doesn’t have any sense. When you click the command button then your command will be triggered. No use of showing tool tip after command executed.
        Well, I suppose that depends on what the tooltip says, and what the button does.

        Comment

        • Ali Rizwan
          Banned
          Contributor
          • Aug 2007
          • 931

          #5
          Originally posted by hariharanmca
          That doesn’t have any sense. When you click the command button then your command will be triggered. No use of showing tool tip after command executed.
          Ok
          Can we show a balloon instead of tooltip?

          Comment

          • hariharanmca
            Top Contributor
            • Dec 2006
            • 1977

            #6
            Originally posted by Ali Rizwan
            Ok
            Can we show a balloon instead of tooltip?
            Can you explain, what that command will do and why you want to display on click?

            Comment

            • Ali Rizwan
              Banned
              Contributor
              • Aug 2007
              • 931

              #7
              Originally posted by hariharanmca
              Can you explain, what that command will do and why you want to display on click?
              Ok,
              I have a textbox where only numbers will enter
              I want when the textbox focuses a ballon will show with text "Only numbers can enter"
              and when noninteger value entered this ballon also show instead of any msgbox.
              thanx

              Comment

              • hariharanmca
                Top Contributor
                • Dec 2006
                • 1977

                #8
                Originally posted by Ali Rizwan
                Ok,
                I have a textbox where only numbers will enter
                I want when the textbox focuses a balloon will show with text "Only numbers can enter"
                and when noninteger value entered this balloon also show instead of any msgbox.
                thanx
                Keep a label near the text box and display your message. You can use balloon but I am not aware of that.

                Comment

                • Ali Rizwan
                  Banned
                  Contributor
                  • Aug 2007
                  • 931

                  #9
                  Originally posted by hariharanmca
                  Keep a label near the text box and display your message. You can use balloon but I am not aware of that.
                  I know the label thing
                  But I want a proper windows balloon.
                  If it is possible then tell otherwise thanks trying
                  Thanks.

                  Comment

                  • Killer42
                    Recognized Expert Expert
                    • Oct 2006
                    • 8429

                    #10
                    I'm confused. What's the difference between a "balloon" and a "tooltip"?

                    Comment

                    • Killer42
                      Recognized Expert Expert
                      • Oct 2006
                      • 8429

                      #11
                      Well in any case, try this little sample I just whipped up. It shows one possible method of doing your own "balloons". It's a VB6 project.
                      Attached Files

                      Comment

                      • hariharanmca
                        Top Contributor
                        • Dec 2006
                        • 1977

                        #12
                        Good idea but if i place some controls then this lable ZOrder will not come forward with text box, command button,...etc (Other controls).

                        He is looking for same like Tooltip.

                        Comment

                        • Killer42
                          Recognized Expert Expert
                          • Oct 2006
                          • 8429

                          #13
                          Originally posted by hariharanmca
                          Good idea but if i place some controls then this lable ZOrder will not come forward with text box, command button,...etc (Other controls).

                          He is looking for same like Tooltip.
                          Yes, you would need to ensure somehow that your balloon was visible. Either by moving it in front of other controls (if that's possible with Shape controls) or by simply making sure that you keep that part of the form clear.

                          This was merely expanding on your suggestion to "keep a label near the text box".

                          This sample form wasn't intended to be a polished application, of course - merely an illustration of some principles.

                          Comment

                          • Ali Rizwan
                            Banned
                            Contributor
                            • Aug 2007
                            • 931

                            #14
                            Hello Hari and Killer
                            I have a thing I have made some tooltips in which tooltips are in a circle with fade effects. It looks like a balloon.
                            Thank you both.
                            Thanks a lot for your company.
                            But if you find anything by which you can show windows balloon tip on form on any event then please tell me.
                            Thanks.

                            Comment

                            • Killer42
                              Recognized Expert Expert
                              • Oct 2006
                              • 8429

                              #15
                              Originally posted by Ali Rizwan
                              I have a thing I have made some tooltips in which tooltips are in a circle with fade effects. It looks like a balloon.
                              Thank you both.
                              Any chance you could post it here? Sounds like fun.

                              Comment

                              Working...