Re: [Harbour] Re: Fixed close event in windows console GTWIN.

2009-12-19 Thread Przemysław Czerpak
On Sat, 19 Dec 2009, Xavi wrote: Hi, > I have HB_SET_CANCEL = FALSE by default and MinGW compile with -mwindows > Thanks to you and Przemek for your help. > --- t2.prg > REQUEST HB_GT_WIN_DEFAULT > ANNOUNCE HB_GTSYS > PROCEDURE Main() > SetCancel(.F.) > ? "Click [X] to close windows console

[Harbour] Re: Fixed close event in windows console GTWIN.

2009-12-18 Thread Xavi
I'm sorry Viktor, I have HB_SET_CANCEL = FALSE by default and MinGW compile with -mwindows Thanks to you and Przemek for your help. --- t2.prg REQUEST HB_GT_WIN_DEFAULT ANNOUNCE HB_GTSYS PROCEDURE Main() SetCancel(.F.) ? "Click [X] to close windows console " while( LastKey() != 27 )

[Harbour] Re: Fixed close event in windows console GTWIN.

2009-12-18 Thread Viktor Szakáts
> --- t2.prg > REQUEST HB_GT_WVT_DEFAULT > ANNOUNCE HB_GTSYS > > PROCEDURE Main() > > ? "Click [X] to close windows console " > while( LastKey() != 27 ) > Inkey( 1 ) > enddo > > RETURN > --- Correction: Add REQUEST HB_GT_WIN to the top. [ Typed to the mailer, more typos are possible. ]

Re: [Harbour] Re: Fixed close event in windows console GTWIN.

2009-12-18 Thread Przemysław Czerpak
On Fri, 18 Dec 2009, Xavi wrote: Hi, > If I sent this example is because I thought the difference was obvious. > In my development environment Windows presents the "End program dialog" (with > option to cancel) with //GTWIN and not without. > The reason is that with one is executed the event han

[Harbour] Re: Fixed close event in windows console GTWIN.

2009-12-18 Thread Viktor Szakáts
Hi Xavi, > If I sent this example is because I thought the difference was obvious. > In my development environment Windows presents the "End program dialog" (with > option to cancel) with //GTWIN and not without. > The reason is that with one is executed the event handler because windows > reuse

[Harbour] Re: Fixed close event in windows console GTWIN.

2009-12-18 Thread Xavi
Viktor, If I sent this example is because I thought the difference was obvious. In my development environment Windows presents the "End program dialog" (with option to cancel) with //GTWIN and not without. The reason is that with one is executed the event handler because windows reused the cons

[Harbour] Re: Fixed close event in windows console GTWIN.

2009-12-17 Thread Viktor Szakáts
> < --- t.prg --- > > > Procedure Main() > Local cArg := hb_CmdLine() > > REQUEST HB_GT_WVG > REQUEST HB_GT_WIN > REQUEST HB_GT_NUL_DEFAULT > > if !Empty(cArg) .and. (Val(cArg) == 1) .and. !('//GTWIN' $ cArg) > hb_gtReload( 'WVG' ) > else > hb_gtReload( 'WIN' ) > endif >

[Harbour] Re: Fixed close event in windows console GTWIN.

2009-12-17 Thread Xavi
Hi Viktor, Now the event handler is executed. For example with the program t.prg .- < --- t.prg --- > Procedure Main() Local cArg := hb_CmdLine() REQUEST HB_GT_WVG REQUEST HB_GT_WIN REQUEST HB_GT_NUL_DEFAULT if !Empty(cArg) .and. (Val(cArg) == 1) .and. !('//GTWIN' $ cArg)

[Harbour] Re: Fixed close event in windows console GTWIN.

2009-12-17 Thread Viktor Szakáts
Hi Xavi, No problem, can you describe what does it fix exactly? Symptoms? I'd like to include it ChangeLog. Brgds, Viktor On 2009 Dec 17, at 20:37, Xavi wrote: > As subject. If no objection, please Viktor, could you update the repository. > > Thanks. > > -- > Xavi > > > > _