1. Win32lib: w32HClose event not firing on window close

I've posted an update of my recipient editor plugin to the 
contributions page. I'm using EU 2.4 Win32lib ver .59.1

I revised all the onXXX statements to use 
 setHandler(control, w32HClick,routine_id) instead.

 Now, however, when the X close button in the window
 top corner is clicked it does not fire the event handler. 

The window just closes normally, where it should prompt to
save changes and put the parent window back in focus.  

Any ideas?

new topic     » topic index » view message » categorize

2. Re: Win32lib: w32HClose event not firing on window close

Michael Raley wrote:
> 
> 
> I've posted an update of my recipient editor plugin to the 
> contributions page. I'm using EU 2.4 Win32lib ver .59.1
> 
> I revised all the onXXX statements to use 
>  setHandler(control, w32HClick,routine_id) instead.
> 
>  Now, however, when the X close button in the window
>  top corner is clicked it does not fire the event handler. 
> 
> The window just closes normally, where it should prompt to
> save changes and put the parent window back in focus.  
> 
> Any ideas?

I haven't looked at your code yet, but did you use 'w32HClick' 
or 'w32HClose' to trap the window close event?

-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view message » categorize

3. Re: Win32lib: w32HClose event not firing on window close

It looks like the update hasn't hit the page yet. 

It's an w32HClose event. 

There was also an event for a cancel button 
which would call CloseWindow() in another routine 
and that stopped triggering the signal also, so 
I redirected the button to the close routine.

this is for a second window with all controls and events
defined in an include file. 

A main application would be written in an exw file. 
after the Main window handle was created it would be
passed in an initialization procedure as the parent 
for the secondary window to be created. 

all the buttons and popup menu in the second window
 function correctly.



Derek Parnell wrote:
> 
> 
> Michael Raley wrote:
> > 
> > 
> > I've posted an update of my recipient editor plugin to the 
> > contributions page. I'm using EU 2.4 Win32lib ver .59.1
> > 
> > I revised all the onXXX statements to use 
> >  setHandler(control, w32HClick,routine_id) instead.
> > 
> >  Now, however, when the X close button in the window
> >  top corner is clicked it does not fire the event handler. 
> > 
> > The window just closes normally, where it should prompt to
> > save changes and put the parent window back in focus.  
> > 
> > Any ideas?
> 
> I haven't looked at your code yet, but did you use 'w32HClick' 
> or 'w32HClose' to trap the window close event?
> 
> -- 
> Derek Parnell
> Melbourne, Australia
> 


I needed to reverse polish notation know I learned in Everything.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Win32lib: w32HClose event not firing on window close

Michael Raley wrote:
> 
> 
> It looks like the update hasn't hit the page yet. 
> 
> It's an w32HClose event. 

> There was also an event for a cancel button 
> which would call CloseWindow() in another routine 
> and that stopped triggering the signal also, so 
> I redirected the button to the close routine.
> 
> this is for a second window with all controls and events
> defined in an include file. 
> 
> A main application would be written in an exw file. 
> after the Main window handle was created it would be
> passed in an initialization procedure as the parent 
> for the secondary window to be created. 
> 
> all the buttons and popup menu in the second window
>  function correctly.

You have this line in your code, but there is no routine
called "onClose_REDITWin" in your code.

setHandler({RECIPEDWin,RECIPED}, {w32HClose}, routine_id("onClose_REDITWin"))


-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view message » categorize

5. Re: Win32lib: w32HClose event not firing on window close

Derek Parnell wrote:
> 
> Michael Raley wrote:
> > 
> > 
> > It looks like the update hasn't hit the page yet. 
> > 
> > It's an w32HClose event. 
> 
> You have this line in your code, but there is no routine
> called "onClose_REDITWin" in your code.
> 
> -- 
> Derek Parnell
> Melbourne, Australia1
> 
Ah yes. That would be the "replace all but the last one" option of my
Text Editor at work. 
Makes me wish I never tossed out my Navy birth control glasses.

--insert hilarious comment here

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu