Hi Farid,

I don't know which dialogbuttons do you add to the ColorSelector. But if 
I understood your problem correctly, then create a own class, which 
extends from the ColorSelector.
The new class must override the "createChildControlImpl" method, to add 
your buttons.

// example
_createChildControlImpl : function(id)
{
  var control;

  switch(id)
  {
     case "control-bar": // override the id from ColorSelector
       control = new qx.ui.container.Composite(new qx.ui.layout.VBox(10));

       control.add(this.getChildControl("old-control-bar"));
       control.add(this.getChildControl("my-button-pane"));
 
      this._add(control);
      break;
    case "old-control-bar": // copied code
      control = new qx.ui.container.Composite(new qx.ui.layout.HBox(10));

      control.add(this.getChildControl("control-pane"));
      control.add(this.getChildControl("visual-pane"));

      this._add(control);
      break;
    case "my-button-pane":
      control = new qx.ui.container.Composite(new qx.ui.layout.VBox(10));
      control.add(new qx.ui.form.Button("Button1"));
      control.add(new qx.ui.form.Button("Button2"));
      break;
    }
  return control || this.base(arguments, id);
}

Hope that this will solve your problem. And if you have any question, 
pleas ask.

Cheers,
Chris

Farid Elyahyaoui schrieb:
> Hi people,
>
> Currently I added dialogbuttons to the colorselector by editing the 
> ColorSelector.js file in the qooxdoo sources.
> This is not a good method because as soon as a new version of qooxdoo 
> gets out I need to
> modify the source code again. I did this when upgrading from 0.7 to 
> 0.8 and from 0.8 to 0.8.1
> Is there a way I can add the buttons in my application code when a new 
> colorselector is added to
> my application?
> Is getChildControl needed in any way?
>
> Thanks,
>
> Farid
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>   


-- 
Christian Schmidt
Software Engineer
Core Development :: Web Technologies

1&1 Internet AG
Ernst-Frey-Str. 9
76135 Karlsruhe, Germany
http://www.1und1.de 

Amtsgericht Montabaur / HRB 6484
                                                        
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas 
Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver 
Mauss, Jan Oetjen

Aufsichtsratsvorsitzender: Michael Scheeren


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to