Alaska Software Inc. - XbpHTMLViewer
Username: Password:
AuthorTopic: XbpHTMLViewer
Joe Carrick XbpHTMLViewer
on Sun, 14 Feb 2010 07:44:53 -1000
Unlike other XbaseParts, I am unable to retrieve the Escape Key in the 
event loop or in the keyboard callback.
I like my dialogs to close if the escape key is pressed but in the case 
of the HTMLViewer having focus it doesn't work.

Is there a way to do this?

Thanks, Joe
James Loughner Re: XbpHTMLViewer
on Sun, 14 Feb 2010 16:57:13 -0500
Have no idea if it would work but have you tried subclassing and
overloading the keyboard method? My guess though is that the event is
filtered by the HTML display code and not passed on to it's parent.

Jim


On 02/14/2010 12:44 PM, Joe Carrick wrote:
> Unlike other XbaseParts, I am unable to retrieve the Escape Key in the
> event loop or in the keyboard callback.
> I like my dialogs to close if the escape key is pressed but in the case
> of the HTMLViewer having focus it doesn't work.
> 
> Is there a way to do this?
> 
> Thanks, Joe
AUGE_OHRRe: XbpHTMLViewer
on Mon, 15 Feb 2010 00:07:18 +0100
hi,

> Unlike other XbaseParts, I am unable to retrieve the Escape Key in the 
> event loop or in the keyboard callback.
> I like my dialogs to close if the escape key is pressed but in the case of 
> the HTMLViewer having focus it doesn't work.
>
> Is there a way to do this?

look at c:\ALASKA\XPPW32\SOURCE\SYS\axctrls.prg
possible Events you can see in METHOD XbpHTMLViewer:HandleEvent()

now look at C:\WINDOWS\system32\shdocvw.dll with COM Assistant which
Events it realy have and add what you need

greetings by OHR
Jimmy