Question regarding 'Advertise' method 
Author Message
 Question regarding 'Advertise' method

Hi all,

I'm trying to advertise a toplevel widget outside of the Populate()
method (in my own method), but it doesn't appear to actually *do*
anything.

Is it a requirement that "Advertise" be called within "Populate"?

Thanks in advance for any help.

Regards,

Dan

--
In the immortal words of Socrates, "I drank what?"

Sent via Deja.com
http://www.*-*-*.com/



Mon, 16 Jun 2003 22:28:55 GMT  
 Question regarding 'Advertise' method

Quote:

> Hi all,

> I'm trying to advertise a toplevel widget outside of the Populate()
> method (in my own method), but it doesn't appear to actually *do*
> anything.

> Is it a requirement that "Advertise" be called within "Populate"?

I don't think so:

use Tk;
my $mw = MainWindow->new;
my $f = $mw->Frame->pack;
my $l = $f->Label(-text => "test")->pack;
$f->Advertise("XYZ" => $l);
$f->Subwidget("XYZ")->configure(-text => "bla");
MainLoop;

Regards,
        Slaven

--
use Tk;$c=tkinit->Canvas(-he,20)->grid;$x=5;map{s!\n!!g;map{create$c 'line'=>
map{$a=-43+ord;($x+($a>>3)*2=>5+($a&7)*2)}split''}split"!";$x+=12}split/_/=>'K
PI1_+09IPK_K;-OA1_+K!;A__1;Q!7G_1+QK_3CLPI90,_+K!;A_+1!KQ!.N_K+1Q!.F_1+KN.Q__1+
KN._K+1Q!.F_1+KN.Q_+1Q__+1!KQ!.N_1;Q!7G_K3,09Q_+1!K.Q_K+1Q!.F_1+KN.Q_';MainLoop



Tue, 17 Jun 2003 20:12:32 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. possibly st00pid question regarding 'require'

2. simple question regarding regex's and unicode

3. Camel Errata: database locking doesn't work as advertised

4. Manpage example doesn't work as advertised

5. Calling Tk methods from 'C'

6. confusion using 'get' method

7. improved 'see' method

8. Nubile newbie's query regarding Mail::Internet

9. Help regarding Microsoft's Personal Web Server CGI configuration

10. Locking files -- 'flock'/'lockf/ question.

11. Question regarding emulating 'trap' functionality in perl.

12. What is pseudorandommy @chars=('a'..'z','A'..'Z','0'..'9','_');

 

 
Powered by phpBB® Forum Software