Results 1 to 2 of 2

Thread: I need help with the coolbar control

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    1

    Question

    Could someone please help me? I have Visual Basic 6 Enterprise edition and I want to use the CoolBar control from one of the Windows Common Controls packages. I can't get any child controls in to the bars. Could someone please tell me how to use this control - I'd be very greatful.

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    I've never used it myself, but here is what help has to say

    Adding Controls to a CoolBar


    The method for adding child controls to a CoolBar control is slightly different from that of adding controls to other containers. The control must first be associated with a Band object; there is a limit of one child control per band.

    To add a control to a CoolBar

    With the CoolBar control selected, select a control from the ToolBox and draw it on the CoolBar.


    Open the Property Page for the CoolBar and select the Bands tab.


    Use the Index buttons to select the index of the Band object on which you want the control to appear.


    Select the control from the Child list.
    The child control will then move and resize along with the Band object at run time.

    Note If you simply add a control without associating it to a band, it will appear as a floating control over the CoolBar at run time. To avoid this situation, set the Visible property of the control to False.

    You can have additional controls contained on a CoolBar and swap them in and out at run time using the Child property of the Band object.

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