| Eckhard Lehmann 2006-12-22, 7:09 pm |
|
Googie schrieb:
> eval Widget::constructor $args
>
> I get error "unknown option -message" or something like that. As I
> understeand - my defined option isn't visible at Widget level, so what
> to do in this case?
That means you have the -message option still in $args.
Widget::constructor tries to itk_initialize it's args, but does not
know about the -widget option.
Solution: Remove the -widget option from $args before you call
Widget::constructor.
> How can I define some custom options at megawidget level that will not
> break Widget/Toplevel constructors?
No problem... I wonder why you call Widget::constructor - there is no
need for this. If you do it via "eval itk_initialize $args", all the
options are configured, the ones that you define and the ones from the
base classes.
Eckhard
|