Re: [fpc-pascal]Ummmm... anyone know why this doesn't work...

2003-08-14 Thread Ingmar Tulva
On Tue, 5 Aug 2003, L D Blake wrote: } // Message dispatcher for all windows } while GetMessage(WMsg,0,0,0) do }begin } if not IsDialogMessage(getforegroundwindow,wmsg) then }begin } TranslateMessage(WMsg); } DispatchMessage(WMsg); }end; }end; } }I

Re: [fpc-pascal]Ummmm... anyone know why this doesn't work...

2003-08-14 Thread L D Blake
In reply to your message of August 5, 2003 > Nice and simple. I like "nice and simple" > Don't know about Matt but thanks from here; I have > bounced into this problem now and then and used all kinds of ugly > solutions :-) My pleasure. - L D Blake

Re: [fpc-pascal]Ummmm... anyone know why this doesn't work...

2003-08-05 Thread L D Blake
A little while back Matt Emson helped me with the message dispatcher for windows programs... we arrived at something like this: > while GetMessage(@oMsg,0, 0, 0) do > begin > if not (IsDialogMessage(OHandle,omsg)) then > begin > TranslateMessage(oMsg); >

Re: [fpc-pascal]Ummmm... anyone know why this doesn't work...

2003-07-23 Thread Matt Emson
> In reply to your message of July 23, 2003 > > > > The answer is simple, but very illusive!!! > > > while (GetMessage(wmsg, FWindowHandle, 0, 0)) do begin > > if not ( IsDialogMessage(FWindowHandle, wmsg) ) then ///this is the > > line you nees to add > > TranslateMessage(wmsg); > >

Re: [fpc-pascal]Ummmm... anyone know why this doesn't work...

2003-07-23 Thread L D Blake
In reply to your message of July 23, 2003 > The answer is simple, but very illusive!!! > while (GetMessage(wmsg, FWindowHandle, 0, 0)) do begin > if not ( IsDialogMessage(FWindowHandle, wmsg) ) then ///this is the > line you nees to add > TranslateMessage(wmsg); > DispatchMessage(

Re: [fpc-pascal]Ummmm... anyone know why this doesn't work...

2003-07-23 Thread Matt Emson
> Tabbing through controls is handled in DefDialogProc() when 1) dialog is > modal or 2) you call IsDialogMessage() explicitly. I have no idea how to > implement this when the buttons are inserted into a window of another > class (when DefDialogProc is not the window procedure); certainly it is > p

Re: [fpc-pascal]Ummmm... anyone know why this doesn't work...

2003-07-23 Thread Ingmar Tulva
Tabbing through controls is handled in DefDialogProc() when 1) dialog is modal or 2) you call IsDialogMessage() explicitly. I have no idea how to implement this when the buttons are inserted into a window of another class (when DefDialogProc is not the window procedure); certainly it is possible so

Re: [fpc-pascal]Ummmm... anyone know why this doesn't work...

2003-07-23 Thread Matt Emson
The answer is simple, but very illusive!!! while (GetMessage(wmsg, FWindowHandle, 0, 0)) do begin if not ( IsDialogMessage(FWindowHandle, wmsg) ) then ///this is the line you nees to add TranslateMessage(wmsg); DispatchMessage(wmsg); end; If you look at what TranslateMessage actu