first to explain what I'm trying to do... I have multiple forms and I navigate through them from form to form... what I want is that all the forms open up as fullscreen. I achieved this by mapping the following macro to the form "when loading" event:
Code: Select all
sub FullScreen
rem ----------------------------------------------------------------------
rem define variables
'dim document as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
rem ----------------------------------------------------------------------
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "FullScreen"
args1(0).Value = true
dispatcher.executeDispatch(document, ".uno:FullScreen", "", 0, args1())
end sub
It works great!
However... if I close the form with the "close" macro that I use:
Code: Select all
REM ***** BASIC *****
Sub CloseForm
ThisComponent.CurrentController.Frame.close(FALSE)
End Sub
Sub Macro1
End Sub
than the second time I open the form it (from the database manager) will open windowed for some reason. If I close it with Alt+F4 than the fullscreen macro works the next time as advertised. A bit of a strange bug... can some1 clarify this behaviour for me a bit.
In practice working with forms directly and linking from form to form I don't have this problem... so it's no biggie... was just wondering...