List Info

Thread: Re: show a Impress document that inserted a video,cannot finish it




Re: show a Impress document that inserted a video,cannot finish it
user name
2007-08-08 03:31:25
Hi Song,

great you came so far with debugging. I just talked to
Thorsten about this
and he told me that even if it is a system window, vcl wraps
a vcl window
around it so we should be able to get the key events.
I suggest you continue debug on this. Best practice for such
cases is
to first debug the case that works. In your case this is
pressing esc
during a running slide show without having a movie playing.
Then follow
the key event from SalSysObjWndProc up to the slide show
implementation
in sd project. You will learn a great deal on the way up.
After you studied
the way of the key event, you can start to reproduce the
error case.
In your case that is pressing esc during a running slide
show with a
movie file playing. Then figure out what is different or who
is stealing
your key event.

Regards,
Christian

songzhanjun wrote:
> Hi Christian,
>
> Thanks for you help.
>
> I used windows XP and the movie format is .avi.
>
> I agree with you. I think that the movie will be a
childwindow when display the Impress, and when click on the
moive, the windows message will come into the callback
function SalSysObjWndProc()( in file:
../vcl/win/source/windows/salobj.cxx), later, the message
will be post to the childwindow( the movie object ). do you
agree with me? 
> but, I don't know how I can do.
>
> Regards,
> songzhanjun
>
>   
>> Hi Song,
>>
>> if the inserted movie is a plugin (don't know, you
need
>> to tell us what format and what plattform) then it
is
>> displayed in a system window. So a click would give
the
>> window the focus and then it consumes all keyboard
events.
>>
>> Regards,
>> Christian
>>
>> songzhanjun wrote:
>>     
>>> Hi, all:
>>>
>>> I have a bug in Impress, and I want to debug
the code. can anyone give me some advice?
>>>
>>> [Step]
>>> 1. new a Impress document.
>>> 2. Insert the video file to a Impress document:
Insert | Movie and Sound, pop the "Insert Movie and
Sound" dialog, select a video file, and click the
"OK" button.
>>> 3. show the Impress.
>>> 4. when show the Impress, click the video's
area.
>>> 5. = >click the Esc key, the Impress can't
finish.
>>> [Expectation]
>>> the Impress can finish when click the Esc key.
>>>
>>> Regards
>>> songzhanjun
>>>
>>>       
>
>   


-- 
Sun Microsystems GmbH
Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribegraphics.openoffice.org
For additional commands, e-mail: dev-helpgraphics.openoffice.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )