For Programmers: Free Programming Magazines  


Home > Archive > Tcl > December 2006 > Re: IncrTk









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: IncrTk
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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com