Il 25/06/2013 11:44, Michael Andres ha scritto:
>> @@ -363,22 +363,26 @@ int main( int argc, char **argv )
>>    hbox->setWeight( YD_VERT, 1 );
>>  
>>    frame			= YUI::widgetFactory()->createCheckBoxFrame( hbox, "CheckFrame", false );
>> +  YCheckBoxFrame* cbf	= dynamic_cast<YCheckBoxFrame*>(frame);
> 
> That's IMO a bad example. ```frame``` is declared as ```YWidget*``` because it did not need to call more derived methods. If it now does, you should prefer a variable of appropriate type rather than downcasting in ```frame = ...`` and then upcasting again.
Agreed, i will change that to avoid casting for YCheckBoxFrame.
I just wanted to have a quick fix, because i thought it was better
to fix it at GTK/QT level, but when i read documentation i understood
it was designed in that way.

Angelo