OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

[Solved] Form Window size .

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base
View previous topic :: View next topic  
Author Message
Cenda
Power User
Power User


Joined: 18 Feb 2011
Posts: 92
Location: Czech Republic

PostPosted: Fri Apr 29, 2011 12:18 pm    Post subject: [Solved] Form Window size . Reply with quote

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
Back to top
View user's profile Send private message Yahoo Messenger
RPG
Super User
Super User


Joined: 24 Apr 2008
Posts: 2696
Location: Apeldoorn, Netherland

PostPosted: Fri Apr 29, 2011 12:29 pm    Post subject: Reply with quote

Hello

See here.

Search there for coverform

I think there is enough information. I think you can find it.

Romke
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group