From: Guillem C. W. <vac...@es...> - 2002-05-17 09:54:04
|
I only use the NodeClick, and it seems to go wrigth, but: - Some NodeClick events are send when I haven't done, for instance when I roll the wheel - If I define a new dinamic window inside the NodeClick it is impossible = to change the window focus to the new Window.Always return to the same windo= w. I tried to return 0 or 1 but any change. I am still using Build 628 of Perl Activestate end Win32::Gui 0.552. I tried to pass my program in order to avoid possible bugs to build 631 a= nd Win32::Gui:655 but cracks just starting. -----Mensaje original----- De: Johan Lindstrom <jo...@ba...> Para: Per...@li... <Per...@li...> Fecha: divendres, 17 / maig / 2002 11:37 Asunto: Re: [perl-win32-gui-users] Strange end of my program when I roll = the wheel of my mouse while downloading information from the web >At 11:26 2002-05-17 +0200, Guillem Cunillera Wefers wrote: >>I use a great TreeView in a Window, and this window uses LWP to downloa= d >>information of the web, but when I roll the wheel of my mouse, the prog= ram >>ends suddenly !. It only happen when I am downloading information from = the >>web, if not no ends success. > >A long time ago I had serious problems with a TreeView and the DblClick >event. Do you have any event handlers defined for the TreeView? > > >/J > >-------- ------ ---- --- -- -- -- - - - - - >Johan Lindstr=F6m Sourcerer @ Boss Casinos jo...@ba... > >Latest bookmark: "HowStuffWorks - Learn how Everything Works!" >http://www.howstuffworks.com/ > > > >_______________________________________________________________ > >Have big pipes? SourceForge.net is looking for download mirrors. We supp= ly >the hardware. You get the recognition. Email Us: bandwidth@sourceforge.n= et >_______________________________________________ >Perl-Win32-GUI-Users mailing list >Per...@li... >https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > |
From: Guillem C. W. <vac...@es...> - 2002-05-17 15:24:59
|
I don't understand your explanation , but in order to avoid the possible problems of the Treeview events I remake my Window: I delete all events from the Treeview, and replaced the desired actions w= ith another Comboboxes in the same window (the most stupid easy solution) , b= ut the same error still ocurrs when I roll the wheel of the mouse when I am downloading web information. The routine of LWP for downloading information includes a DoEvents() ins= ide a subroutine such it was explained for Flame in one mailing list. It could be a bug of the Treeview but I don't know what kind of problem could be. I will include like a bug of my program ;>( Thanks again, Guillem -----Mensaje original----- De: Johan Lindstrom <jo...@ba...> Para: Per...@li... <Per...@li...> Fecha: divendres, 17 / maig / 2002 13:04 Asunto: RE: [perl-win32-gui-users] Strange end of my program when I roll = the wheel of my mouse while downloading information from the web >At 11:57 2002-05-17 +0200, Guillem Cunillera Wefers wrote: >>I only use the NodeClick, and it seems to go wrigth, but: >>- Some NodeClick events are send when I haven't done, for instance when= I >>roll the wheel > >Maybe this is related to the problems I had, I don't know. This is how I >"solved" my problem: > >----- >I wrote: >>If I don't actually double click on the node, the problem disappears. I= f I >>call the DblCLick() sub from e.g. a NodeClick() event or a button Click= () >>it works fine. > >And so it went away. > >The workaround--I'm big on workarounds, having a past as a web designer-= -is >to not do important stuff in the DblClick() event. What I do now is this= : > >In the DblClick() event I set a property, eventWrapper, to the code I wa= nt >to execute. Nothing else. A timer triggers 50 times a second, looking at >the eventWrapper property. If it's nonempty, the timer evals the string. Voila! > >The timer doesn't seem to affect performance, and the delay between doub= le >click and action isn't noticable unless you know it's there. > >It's not industrial-strength tested yet, but it seems to work fine. >----- > > >/J > >-------- ------ ---- --- -- -- -- - - - - - >Johan Lindstr=F6m Sourcerer @ Boss Casinos jo...@ba... > >Latest bookmark: "HowStuffWorks - Learn how Everything Works!" >http://www.howstuffworks.com/ > > > >_______________________________________________________________ > >Have big pipes? SourceForge.net is looking for download mirrors. We supp= ly >the hardware. You get the recognition. Email Us: bandwidth@sourceforge.n= et >_______________________________________________ >Perl-Win32-GUI-Users mailing list >Per...@li... >https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > > |
From: Johan L. <jo...@ba...> - 2002-05-17 11:03:06
|
At 11:57 2002-05-17 +0200, Guillem Cunillera Wefers wrote: >I only use the NodeClick, and it seems to go wrigth, but: >- Some NodeClick events are send when I haven't done, for instance when I >roll the wheel Maybe this is related to the problems I had, I don't know. This is how I "solved" my problem: ----- I wrote: >If I don't actually double click on the node, the problem disappears. If I >call the DblCLick() sub from e.g. a NodeClick() event or a button Click() >it works fine. And so it went away. The workaround--I'm big on workarounds, having a past as a web designer--is to not do important stuff in the DblClick() event. What I do now is this: In the DblClick() event I set a property, eventWrapper, to the code I want to execute. Nothing else. A timer triggers 50 times a second, looking at the eventWrapper property. If it's nonempty, the timer evals the string. Voila! The timer doesn't seem to affect performance, and the delay between double click and action isn't noticable unless you know it's there. It's not industrial-strength tested yet, but it seems to work fine. ----- /J -------- ------ ---- --- -- -- -- - - - - - Johan Lindström Sourcerer @ Boss Casinos jo...@ba... Latest bookmark: "HowStuffWorks - Learn how Everything Works!" http://www.howstuffworks.com/ |