| View previous topic :: View next topic |
| Author |
Message |
Seb33300 Power User

Joined: 07 Feb 2006 Posts: 63 Location: France
|
Posted: Fri Feb 10, 2006 12:41 am Post subject: Form size |
|
|
Is it possible to choose the size of the forms ?
I want to open them in a small window without toolbars
And is it possible to make groupbox wich can contain other things then radio bt ?
thanks |
|
| Back to top |
|
 |
Seb33300 Power User

Joined: 07 Feb 2006 Posts: 63 Location: France
|
Posted: Sun Feb 12, 2006 1:00 pm Post subject: |
|
|
is it possible ?
and is it possible to open a form when we open a database ? |
|
| Back to top |
|
 |
DrewJensen Super User


Joined: 06 Jul 2005 Posts: 2616 Location: Cumberland, MD
|
Posted: Sun Feb 12, 2006 2:41 pm Post subject: Re: Form size |
|
|
| Seb33300 wrote: | Is it possible to choose the size of the forms ?
I want to open them in a small window without toolbars
And is it possible to make groupbox wich can contain other things then radio bt ?
thanks |
The form will open to whatever size it was when saved in design mode.
Yes, a group box can contain anyother type of control, including other group boxes. When you do this you can enable or disable all the controls in the box by doing so to the goup box itself.
| Quote: |
and is it possible to open a form when we open a database ?
|
There is no inherint support for this. _________________ Blog - http://baseanswers.spaces.live.com/ |
|
| Back to top |
|
 |
Seb33300 Power User

Joined: 07 Feb 2006 Posts: 63 Location: France
|
Posted: Sun Feb 12, 2006 11:50 pm Post subject: |
|
|
ok thanks
And how to open a form clicking on a button ? |
|
| Back to top |
|
 |
DrewJensen Super User


Joined: 06 Jul 2005 Posts: 2616 Location: Cumberland, MD
|
Posted: Mon Feb 13, 2006 4:51 am Post subject: |
|
|
Do a search on the forum...that is the quickest way to get your answer...there are plenty of examples. _________________ Blog - http://baseanswers.spaces.live.com/ |
|
| Back to top |
|
 |
Seb33300 Power User

Joined: 07 Feb 2006 Posts: 63 Location: France
|
Posted: Mon Feb 13, 2006 6:52 am Post subject: |
|
|
All that I found don't work or I don't know how to use them
I crash ma base using one... All my forms had been destroyed...  |
|
| Back to top |
|
 |
hermione General User


Joined: 05 Feb 2004 Posts: 14
|
Posted: Sun May 07, 2006 2:14 am Post subject: Form Size |
|
|
When I go back into design mode, can I then change the size of the form? I used the wizard to design a form and then rearranged the fields. The form itself is now wider than I want and not long enough. _________________ Config: WinXP OOo 2.02 |
|
| Back to top |
|
 |
snowdrop General User

Joined: 24 Jun 2006 Posts: 7
|
Posted: Sun Jun 25, 2006 5:54 am Post subject: |
|
|
About opening a form from another form, assign to the button the following code
function OpenForm( formContainer as variant, oConnection as variant, sFormName as string) as variant
Dim aProp(1) As New com.sun.star.beans.PropertyValue
aProp(0).Name = "ActiveConnection"
aProp(0).Value = oConnection
aProp(1).Name = "OpenMode"
aProp(1).Value = "open"
OpenForm = formContainer.loadComponentFromURL(sFormName,"_blank",0,aProp())
end function
function getFormsTC() as variant
getFormsTC = thisComponent.Parent.getFormDocuments
end function
function getConnectionTC() as variant
getConnectionTC = thisComponent.Drawpage.Forms(0).ActiveConnection
end function
sub OpenForm_myform( oev as variant )
sFormName = "Formnametoopen"
OpenForm( getFormsTC, getConnectionTC, sFormName )
end sub |
|
| Back to top |
|
 |
|