The -visible option is only for the initial state, subsequent showing and hiding is done with Show and Hide ... erm, pardon my confusion, but what's the problem? If you found Show and Hide to be working, what more do you need?
You remind me of another problem that might cut in: I am not able to change the Z-order of objects. Imagine two things (buttons) partly overlapping. I wanted to be able to bring each on top of the other by clicking, but that never worked. At times, the obscured button has the focus, which is very annoying indeed, because you click what you see and something else triggers. But if you only ever do show and hide, this will not concern you and you should be fine with your solution. Have fun, Harald | -----Original Message----- | From: Peter Köller [mailto:[EMAIL PROTECTED] | Sent: Thursday, May 17, 2001 10:48 | To: perl-win32-gui-users@lists.sourceforge.net | Subject: [perl-win32-gui-users] Changing visibility problem | with buttons | | | Hello, | | I am writing a calendar dialog having lots of buttons. For | some reason I | have to make some buttons visible or invisible. Therefore I | use the Change | method with -visible => 1 or 0. If I do that after | $win->Show(), then the | buttons don't disappear. I tried $win->DoEvents(), | $win->SetRedraw(1) and | much more. The only thing which worked was: | | $win->Hide(); | $win->Show(); | | Is this the only method? Any help appreciated. | | Peter | | | _______________________________________________ | Perl-Win32-GUI-Users mailing list | Perl-Win32-GUI-Users@lists.sourceforge.net | http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users |