Re: Widget referencing in VB events.

From: 'Anton Berezin' <tobez_at_tobez.org>
Date: Thu, 9 May 2002 23:27:47 +0200
To: Rick Ovenden <R.Ovenden_at_rslcom.de>

Rick,

On Thu, May 09, 2002 at 11:23:02PM +0200, Rick Ovenden wrote:

> But the other approach suggested by Anton doesn't work for me........

> $::application->Form1->Button2->text("abcd");

> This doesn't appear to do anything. I don't get an error message. If
> I change Form1 to Form99 (which doesn't exist) then I get an 'Unknown
> widget or method' error (not surprising).

It does actually, but if you run it from within VB, the templated
Button2 in the templated Form1 will get changed (try it, run the
program, click the button, quit, you'll see the text on the button in
the form designer changed), not the `real' button. If you run your code
standalone, everything should work fine.

For now, consider this a feature which looks like a bug. :-)

=Anton.

-- 
| Anton Berezin                |      FreeBSD: The power to serve |
| catpipe Systems ApS   _ _ |_ |           http://www.FreeBSD.org |
| tobez_at_catpipe.net    (_(_||  |                tobez_at_FreeBSD.org | 
| +45 7021 0050                |         Private: tobez_at_tobez.org |
Received on Thu 09 May 2002 - 23:27:50 CEST

This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:04 CET