Cenda Power User


Joined: 18 Feb 2011 Posts: 92 Location: Czech Republic
|
Posted: Fri Apr 29, 2011 12:18 pm Post subject: [Solved] Form Window size . |
|
|
Ha all .
I have problem with setting form window size
This way it sets just position and ignores size setting.
| Code: |
With OpenLocalForm.GetCurrentController().GetFrame().GetContainerWindow()
.SetPosSize(,,400,600,com.sun.star.awt.PosSize.SIZE)
.SetPosSize(800,0,,,com.sun.star.awt.PosSize.POS)
.setFocus()
End With
|
this way it sets size and ignores position setting
| Code: |
With OpenLocalForm.GetCurrentController().GetFrame().GetContainerWindow()
.SetPosSize(800,0,,,com.sun.star.awt.PosSize.POS)
.SetPosSize(,,400,600,com.sun.star.awt.PosSize.SIZE)
.setFocus()
End With
|
in other words the second SetPosSize statement overwrites the first one .
And this way it sets position and ignores size
| Code: |
With OpenLocalForm.GetCurrentController().GetFrame().GetContainerWindow()
.SetPosSize(800,0,400,600,com.sun.star.awt.PosSize.POSSIZE)
.setFocus()
End With
|
Has anyone some advice how to set both the position and the size ?
Thank you in advance
Cenda
Last edited by Cenda on Mon Jul 25, 2011 12:30 am; edited 1 time in total |
|