Results 1 to 9 of 9

Thread: Toolbar question

  1. #1

    Thread Starter
    Hyperactive Member SjR's Avatar
    Join Date
    Jul 2001
    Location
    Birmingham, UK
    Posts
    336

    Toolbar question

    Morning
    Quick toolbar question...

    When I create my toolbar, the buttons are all the same size (see screenshot) The first button is a drop down button with text, the second is an ordinary push button.



    I've tried messing with the autosize properties of the toolbar but either the dropdown button is not big enough to display the text or the second push button is too big... is it possible to set the size of the individual buttons or do I need to create a new toolbar class or something.

    Seems overly complicated to achieve quite a standard effect I would have thought.

    any ideas?

    Thanks!
    Attached Images Attached Images  
    Another satisfied customer

  2. #2
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    Also (sorry this isn't an answer to your question SjR), how can you specify the width of the seperator in a toolbar?
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  3. #3
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    OK , this isn't a problem at all . Try to resize the page of an IE , then you will get the same result as with your toolbar. So no worries .

  4. #4

    Thread Starter
    Hyperactive Member SjR's Avatar
    Join Date
    Jul 2001
    Location
    Birmingham, UK
    Posts
    336
    Originally posted by pirate
    OK , this isn't a problem at all . Try to resize the page of an IE , then you will get the same result as with your toolbar. So no worries .
    IE as in Internet Explorer?
    Doesn't do that for me??
    or have I missed the point?

    Oh yeah, I would also like to know how to set the width of a separator if anyone knows
    Another satisfied customer

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    IE was just an example to say that the toolbar isn't resizable ??

  6. #6

    Thread Starter
    Hyperactive Member SjR's Avatar
    Join Date
    Jul 2001
    Location
    Birmingham, UK
    Posts
    336
    I see...
    I think you missed the point - let me explain.

    In IE - example shown - the "back" button has a greater width (width=approx 40?) than the "stop" and "refresh" buttons (width=approx 18?) - which contain icons only and no text.



    In my app, the "New" button is exactly the same size as the un-named button next to it. I would like the "New" button to retain its width so that the text "New" is displayed, whilst the second button I would like to have a width of about 18, so that there isn't a blank space to the right of the icon.



    Please note, I do not require code to centre the second icon on the button to reduce the space to the right!
    Attached Images Attached Images  
    Another satisfied customer

  7. #7
    Junior Member shahzad's Avatar
    Join Date
    Sep 2001
    Location
    Karachi,Pakistan
    Posts
    17

    Red face I Think This Will Clear Your Issue

    Please Visit the Site http://www.vbaccelerator.com/home/VB/..../article.asp

    I think this will clear your issue
    Muhammad Shahzad

  8. #8

    Thread Starter
    Hyperactive Member SjR's Avatar
    Join Date
    Jul 2001
    Location
    Birmingham, UK
    Posts
    336
    Cool, thanks for the link!
    I noticed that the toolbar control was in the VB(5/6) section and not .NET - hopefully it will be compatible (I will try it out)

    Bit rubbish that you cannot set the width property of individual buttons - you would think that would be a standard request!! Almost as crap as the menu control that cannot have an associated imagelist - although at least I know how to get round that one...
    Ah well........
    Another satisfied customer

  9. #9
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    That is very strange that yours is doing that because mine isn't.

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