To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=72656





------- Additional comments from [EMAIL PROTECTED] Sun Jan  7 03:25:27 -0800 
2007 -------
The faulty part of the macro is CentreDlg subroutine
it was working in OOo 2.0.x, so seems to be a bug
i'll investigate a bit more


sub CentreDlg(oDialog as object)
'thanks to Berend Cornelius

        Dim CurPosSize as new com.sun.star.awt.Rectangle
        dim FramePosSize,xWindowPeer,WindowHeight,WindowWidth
        dim DialogWidth,DialogHeight,iXPos,iYPos
        
        FramePosSize =
ThisComponent.getCurrentController().Frame.getComponentWindow.PosSize
    xWindowPeer = oDialog.getPeer()
    CurPosSize = oDialog.getPosSize()
        WindowHeight = FramePosSize.Height
        WindowWidth = FramePosSize.Width
        DialogWidth = CurPosSize.Width
        DialogHeight = CurPosSize.Height        
        iXPos = ((WindowWidth/2) - (DialogWidth/2))
        iYPos = ((WindowHeight/2) - (DialogHeight/2))
    oDialog.setPosSize(iXPos, iYPos, DialogWidth, DialogHeight,
com.sun.star.awt.PosSize.POS)

end sub

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to