Home Component Writing
New Blog Posts: Merging Reports - Part 1 and Part 2

Expanding Toolbar to hold more Components

edited January 2003 in Component Writing
Hi,

When registering a new component on a Toolbar (ppRegisterComponent), the
toolbar stays the same size as before, thus hiding one of the default
components in order to make place for the new one.
How do I get over this?

Using RBuilder 6.03, descending from TppRegion.

-Jack

Comments

  • edited January 2003
    Hi Jack,

    It should expand. Did you unregister a component? The register call contains
    the position where the component should go in the toolbar. I also have a
    region descendent to play with. What does you register call look like- I can
    try it on mine to see what happens.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited January 2003
    This is my register call:
    ppRegisterComponent(TVarAwareRegion, 'Advanced Components', 10, 0,
    'VarAwareRegion', HInstance);

    I do not unRegister any other component, (do I have to).

    -Jack
  • edited January 2003
    Sorry for the delay. The only thing I can think of is that you do not have
    ppCTDsgn in your uses clause. Adding this adds crosstab support to the
    designer at runtime. This would mean that the new region component shows up
    inthe place where the crosstab component normally shows up. When I add
    ppCTDsgn, the new region adds itself to the right of the crosstab, using
    your register call.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited January 2003
    Thanks, that did the trick.

    -Jack

This discussion has been closed.