Results 1 to 2 of 2

Thread: multiple row tooltiptext and multiple row text in excel

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2000
    Posts
    30

    Unhappy

    alo guys i really need help here...
    i use VB to link with excel to produce a shape objects.
    but i got difficulty to put a multiple row text.

    shape1.TextFrame.Characters.Text = SCN & vbCrLf & rsGet!ves_name

    the vbcrlf is printed to a character in the textframe.
    how to get rid the character off, but i can use the multiple rows....

    and how to use the multiple row tooltiptext...

    VB only provide one row tooltiptext only....

    thanks to all of you ...

    aliank

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    you can't use multiline tooltips but you can simulate
    the effect this way.
    Code:
    'create multil line tag tips...same use as tool tips except
    'that with tool tips you are restricted to one line..
    'with tag tips you get multiline
    'remember to set the height and width of your 
    'label to fit your message
    '
    'this example uses a command button (command1) & a label (label1)
    '
    'on mouse over the command button the tool tag is displayed
    '
    Private Sub Form_Load()
       
       Label1.BackStyle = 0    'or 1 and set the backcolor to tooltip color
       Label1.Visible = False
       
    End Sub
    
    Private Sub Command1_MouseMove(Button As Integer, _
    Shift As Integer, X As Single, Y As Single)
         
         Dim msg$
         msg$ = "Tag tips for the beginner." & vbCrLf
         msg$ = msg$ & "Multil Line Tag Tips Made Easy" & vbCrLf
         msg$ = msg$ & "Think of the possibilities!"
             
         
         Command1.Tag = msg$
    
         Label1.Caption = Command1.Tag
         Label1.Top = Command1.Top + Command1.Height
         Label1.Left = Command1.Left + Command1.Width / 2
         Label1.Visible = True
         
    End Sub
    
    
    Private Sub Label1_MouseMove(Button As Integer, _
    Shift As Integer, X As Single, Y As Single)
       
       Label1.Visible = False
       
    End Sub
    
    'use this code in any control near the label as you want to capture
    'the event when off the label
    Private Sub Form_MouseMove(Button As Integer, _
    Shift As Integer, X As Single, Y As Single)
       
       Label1.Visible = False
       
    End Sub
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width