Results 1 to 5 of 5

Thread: [RESOLVED] Toolbar return key

  1. #1

    Thread Starter
    Fanatic Member louvelle's Avatar
    Join Date
    Jun 2008
    Posts
    513

    Resolved [RESOLVED] Toolbar return key

    Good day!..

    I'm using a toolbar component in the Microsoft Windows Common Control 6.0 (SP6).

    I am wondering if this is possible in the toolbar button's caption:

    Instead of this:
    Code:
    Add a student
    The caption of the button is like this:
    Code:
    Add a
    Student
    It's like a return key is press after the word "Add a"..


    Manny Pacquiao once posted in his twitter:
    It doesn't matter if the grammar is wrong, what matter is that you get the message

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Toolbar return key

    depending if the caption is multi line you could try
    vb Code:
    1. caption = "Add a" & vbnewline & "Student"
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3

    Thread Starter
    Fanatic Member louvelle's Avatar
    Join Date
    Jun 2008
    Posts
    513

    Re: Toolbar return key

    Thanks for the reply.
    I already tried that but it didn't work. The vbnewline shows a [] squares and boxes..
    I think new lines are impossible in the caption of the tool bar...

    Manny Pacquiao once posted in his twitter:
    It doesn't matter if the grammar is wrong, what matter is that you get the message

  4. #4
    Fanatic Member
    Join Date
    Mar 2009
    Posts
    804

    Re: Toolbar return key

    So use a graphic app like MS Paint to create a bmp
    which has your multiline caption, put it
    in an imagelist and assign the imagelist pic to the button.

  5. #5

    Thread Starter
    Fanatic Member louvelle's Avatar
    Join Date
    Jun 2008
    Posts
    513

    Re: Toolbar return key

    probably the best solution for my problem..
    thanks vbclassicrocks

    Manny Pacquiao once posted in his twitter:
    It doesn't matter if the grammar is wrong, what matter is that you get the message

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