On Wed, 13 Oct 1999, [EMAIL PROTECTED] wrote:

> I am waniting to use the $widget(alias) feature in procs but seem to be
> having a bit of trouble understanding the global / local concept in this
> specific case.
> 
> I have tried:
> 
> global alias
> 
> inside the proc with no success.  Thinking that the alias is a global var.
> 
> Until I can find a better solution I am just passing $widget(alias) to the
> procs, which works fine, but, seems a bit cLuMbsY.

global widget

If the alias that you assign is "NameEntry", then the var is
$widget(NameEntry).

Be warned that strange things happen when you cut/copy paste widgets with
aliases. I often have to edit duplicate aliases out of the file that vTcl
saves, but it's worth it. I use this feature constantly.

...RickM...

---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).

Reply via email to