Hey,
as you use the DateField as a child control, you are changing the appearance 
key of the widget. This means the theming can not detect hat its initial 
appearance was. But not a big problem, you simply have to add a appearance 
forward to your own theme. Let's say your custom widget has the appearance key 
"awesome". Go to your appearance class and add a new line

"awesome/dtpDate" : "datefield"

That should do the trick. If not, you have to add the child controls of the 
date field as well. Just let me know and I'll guid you through this as well.

Regards,
Martin


Am 21.09.2012 um 09:56 schrieb jden123 <[email protected]>:

> Hello!
> I'm new in qooxdoo. I'm trying to create my first widget. It's simply
> DateField wrapped by widget.
> I use the following constructor:
> construct : function() {
>       this.base(arguments);
> 
>       // initialize the layout
>       var layout = new qx.ui.layout.Grid(1, 1);
>       this._setLayout(layout);
> 
>       // create the widgets
>       this._createChildControl("dtpDate");
> },
> 
> DateField control is created in _createChildControl by following code:
>       control = new qx.ui.form.DateField();
>       control.setValue(new Date());
>       this._add(control, { row : 0, column : 0 });
> 
> My application contains DateField widget and my test widget. But my widget
> does not have calendar icon (pls see the picture).
> <http://qooxdoo.678.n2.nabble.com/file/n7581435/sample.png> 
> Please clarify what I'm doing wrong. How can I fix it?
> 
> 
> 
> --
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/Widget-style-tp7581435.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to