Hi, Mathias:
I have tried further according to your idea, the problem is solved.
I don't understand what header and border you mean. Does it mean that at the place where the decoration used to be now a grey area is painted? I would say that this is a toolkit bug, but that should be judged by a toolkit/VCL expert.
no, it's better, the place of the window title and border are transparent, we can see background. I attached a pic to illustrate this.
yes, and also need #include <vcl/wrkwin.hxx>
You could try to hack a little bit more, but it needs using VCL because the necessary functionality is not available through the toolkit API.
After creation of the Window you can get a VCL Window pointer:
WorkWindow* pWindow = (WorkWindow*) VCLUnoHelper::GetWindow( xWindow );
(this might need to include <toolkit/helper/vclunohelper.hxx>)
This window can be set to maximum size:
pWindow->Maximize();
this does not work. it seems equal to the effect of css::awt::WindowAttribute::FULLSIZE.
If this doesn't work you could instead try
pWindow->ShowFullScreenMode (TRUE );
yes, it works and this is exactly what we need, after show task in full screenmode, the OOo start without any decoration and in full screen mode.
Please note that the last call will remove the Menubar from the screen though it is still accessible through keyboard
no, it just show the window in full screen mode, menubar and tool bar are all preserved, the perfect result.
when closing a doc, OOo will popup a dialog and ask that the doc is not saved and please save it before quitt, but since the main window is fullscreen and on the top, the dialog will show behind the main window and can not click OK, so there will be some problems when using OOo under fullscreen mode.
This code is a little bit hacky, because it does a dynamic cast to WorkWindow*, but as long as the WindowDescriptor still contains TOP it will work.
best regards Gorden Lin
<<inline: ooofull.jpg>>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]