For Programmers: Free Programming Magazines  


Home > Archive > PerlTk > October 2004 > Problem with TK-HList









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 Problem with TK-HList
Pit

2004-09-22, 9:09 am

Hi Folks,

I've some problems with the TK-Hlist.

In my programm there is at first a HList with some entry's. I use the
browsecmd-option showing some values of the HList entrys.

By pressing some button a Toplevel-widget comes up. This Toplevel contains
another HList and the Window lies about the first HList.
When I select an entry of the second HList by Double-Button-Press the
Toplevel will be destroyed.

The problem is, that the anchor of the first HList will be set to the
position of Button-Press in the second HList and another entry of the
first HList will be choosen via browsecmd.

Thanks

Pit

Slaven Rezic

2004-10-19, 8:56 pm

"Pit" <pharrendorf@am-soft.de> writes:

> Hi Folks,
>
> I've some problems with the TK-Hlist.
>
> In my programm there is at first a HList with some entry's. I use the
> browsecmd-option showing some values of the HList entrys.
>
> By pressing some button a Toplevel-widget comes up. This Toplevel contains
> another HList and the Window lies about the first HList.
> When I select an entry of the second HList by Double-Button-Press the
> Toplevel will be destroyed.
>
> The problem is, that the anchor of the first HList will be set to the
> position of Button-Press in the second HList and another entry of the
> first HList will be choosen via browsecmd.
>


Maybe it helps to do the destruction of the second toplevel a few
milliseconds later. E.g.

$mw->after(50, sub { $hlist2->destroy });

Regards,
Slaven

--
Slaven Rezic - slaven <at> rezic <dot> de

Berlin Perl Mongers - http://berlin.pm.org
Sponsored Links







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

Copyright 2008 codecomments.com