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

x
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base
View previous topic :: View next topic  
Author Message
RPG
Super User
Super User


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

PostPosted: Fri Jun 13, 2008 2:47 am    Post subject: Reply with quote

Hello Robby

I see you have learned. For me it was also difficult to find all steps. I hope I give enough information so you can do it.

Discovered negative
I discovered that there is a problem for forms who will be used for input. The problem is not in displaying but in the tab order. The tab order mean what control needs input and so on. I think and hope that the tab order can be controlled by macro's. For me it is no problem I use it only in form for displaying and a little input

Discovered positive
1)I discovered you can use a frame in a frame. All with control and if you move the frame the control moving with the frame
2) You can change the size of the frame. So you can make they have the same size.
This one you can use for changing the size of the frame. There are much more.
oBegin.FrameHeightAbsolute=6000
oBegin.FrameWidthAbsolute=15000

I found this links who can tell us something about moving. They are old and sometime maybe not more good. But most of the time you can learn things.
http://www.oooforum.org/forum/viewtopic.phtml?p=32361#32361
http://www.oooforum.org/forum/viewtopic.phtml?t=8095&highlight=setpossize
http://www.oooforum.org/forum/viewtopic.phtml?t=10431

Romke
Back to top
View user's profile Send private message
Robby
OOo Advocate
OOo Advocate


Joined: 21 Sep 2004
Posts: 249

PostPosted: Fri Jun 13, 2008 5:07 am    Post subject: Reply with quote

xxx

Last edited by Robby on Sun Dec 11, 2011 1:41 am; edited 1 time in total
Back to top
View user's profile Send private message
Robby
OOo Advocate
OOo Advocate


Joined: 21 Sep 2004
Posts: 249

PostPosted: Fri Jun 13, 2008 6:45 am    Post subject: Reply with quote

xxx

Last edited by Robby on Sun Dec 11, 2011 1:41 am; edited 1 time in total
Back to top
View user's profile Send private message
Robby
OOo Advocate
OOo Advocate


Joined: 21 Sep 2004
Posts: 249

PostPosted: Fri Jun 13, 2008 10:08 am    Post subject: Reply with quote

xxx

Last edited by Robby on Sun Dec 11, 2011 1:41 am; edited 1 time in total
Back to top
View user's profile Send private message
RPG
Super User
Super User


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

PostPosted: Fri Jun 13, 2008 1:29 pm    Post subject: Reply with quote

Hello Robby

I did also find some about hiding a control. They write also that it was not working more in OOo2.3 Maybe I will look to it. On this moment I do have less time I help other people to paper a room (behangen).

Maybe the frames are not a good solution for you. maybe it is so, that is to you, but I do not understand
Quote:
maybe when I could push the forms to a second page...
Can't find if this is possible
Maybe I must explain how I use it.
I do have a frame of 3 cm high and 15 cm width at possition 0,0. In this frame I do have the buttons for showing one or the other.
All other frames are on a position they are not showed. So I don't understand why you want have a second page. Maybe I don't understand your problem. Understand me good I will not convinced you that you must use frames that is not to me.

One thing I will convinced you and that is make more versions of you code. Every time I make an important change I give the code a higher number.

how to anchor the frames
Maybe it is important to know the frames are anchored to page. And the page is a weblayout. If they are not anchored to page you have maybe/sure problems. I did have the frames for more then 4 months. And I have not change a lot in the frames. The change is I can move them.

I hope this make some other points clear.

Romke
Back to top
View user's profile Send private message
Robby
OOo Advocate
OOo Advocate


Joined: 21 Sep 2004
Posts: 249

PostPosted: Fri Jun 13, 2008 9:37 pm    Post subject: Reply with quote

xxx

Last edited by Robby on Sun Dec 11, 2011 1:41 am; edited 1 time in total
Back to top
View user's profile Send private message
RPG
Super User
Super User


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

PostPosted: Sat Jun 14, 2008 1:45 am    Post subject: Reply with quote

Hello Robby

Insert so much returns so that you get enough room I can go to 100 cm. It is more work of the writer then of macro's. Make it ready without macro's

and no automatic


Romke
Back to top
View user's profile Send private message
Robby
OOo Advocate
OOo Advocate


Joined: 21 Sep 2004
Posts: 249

PostPosted: Sat Jun 14, 2008 11:50 am    Post subject: Reply with quote

xxx

Last edited by Robby on Sun Dec 11, 2011 1:42 am; edited 1 time in total
Back to top
View user's profile Send private message
RPG
Super User
Super User


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

PostPosted: Sat Jun 14, 2008 1:22 pm    Post subject: Reply with quote

Hello Robby

Be sure I want tell every thing you need if I knew it. Most of the time I don't know what are standards and what I have made me own. And believe me I have search a long time.

One other thing I want ask and tell. you knew about the existing of the dialogs. I don't use them, and I think using them with OOoBase is not a good idea, but other people can have an other meaning. But it is possible that the Dialogs can do what you want. The dialogs are a part of the macros

Romke
Back to top
View user's profile Send private message
Robby
OOo Advocate
OOo Advocate


Joined: 21 Sep 2004
Posts: 249

PostPosted: Sun Jun 15, 2008 11:00 am    Post subject: Reply with quote

xxx

Last edited by Robby on Sun Dec 11, 2011 1:42 am; edited 1 time in total
Back to top
View user's profile Send private message
RPG
Super User
Super User


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

PostPosted: Tue Jun 17, 2008 5:36 pm    Post subject: Reply with quote

Hello Robby

I have make three macro's
set_frame_size is not so important
set_frame_position is not so important
set_Frame_Correct makes life easy if you want work with frames

The last one takes care for all setting of a frame you need to works with it.

I don't know if you interest it but maybe other people.

For your in formation menu--> view--> not printable characters will help you with better see how something is working.

Don't spent a lot of time to it.
Did you get mail back ?

Romke




Code:

sub set_frame_size (FrameName,width,height)
'FrameName is object who's size must be set
' width and height are in 0.01 mm
' This sub set the position of your frame use it the first time and if you want change the position

'make size
'are the same
' For width and height are two properties
FrameName.FrameWidthAbsolute=width
'FrameName.Width=3000
FrameName.FrameHeightAbsolute=height
'FrameName.Height=8000
end sub




sub set_frame_position (FrameName,x,y)
'FrameName is object who's position must be set
'position is in 0.01 mm
' for 3 cm you have to use 3000
' This sub set the size of your frame use it the first time and if you want change the size
' You this run once. save after running the form

with FrameName
   .HoriOrientPosition=x
   .VertOrientPosition=y ' horizon position
end with

end sub

sub set_Frame_Correct (FrameName)
'FrameName is object what must be set correct
' This sub set correct all value for a frame so you move them.
' May be there are more value I did not found them
' You this run once. save after running the form


with FrameName
   'Set anchor type good
   ' if not anchor to frame  anchor frame to page
   select case .Anchortype
   case 2,3: '2 is for page Organize anchor position 3 is for frame
   case else : .AnchorType=2
   end select

   .VertOrientRelation=0 ' 0start of the corner of the paper 0 to 4
   .VertOrient=0  'Bepaalt waar het begint
 

   .FrameWidthPercent=0 'Don't change it
   .FrameHeightPercent=0 'Don't change oit
   
   .WidthType=1 ' 1 dit is een betere waarde
   
   .HoriOrient=0 'links midden of rechts 0,1,2,3
   .HoriOrientRelation=0
   
   .FrameIsAutomaticHeight=false 'Not automatic
   
   
   .IsFollowingTextFlow=false
   .IsSyncHeightToWidth=false
   .isSyncWidthToHeight=false

   .Opaque=false  'doorzichtig
   .PageToggle=false
   .PositionProtected=false
   .Print=false
   .ServerMap=false
   .SizeProtected=false
   .SurroundAnchorOnly=false
   .RelativeHeight=0 ' moet nul zijn
   .RelativeWidth=0  ' Kan beter nul zijn
end with
end sub
Back to top
View user's profile Send private message
Robby
OOo Advocate
OOo Advocate


Joined: 21 Sep 2004
Posts: 249

PostPosted: Tue Jun 17, 2008 9:08 pm    Post subject: Reply with quote

xxx

Last edited by Robby on Sun Dec 11, 2011 1:42 am; edited 1 time in total
Back to top
View user's profile Send private message
Robby
OOo Advocate
OOo Advocate


Joined: 21 Sep 2004
Posts: 249

PostPosted: Wed Jun 18, 2008 7:17 am    Post subject: Reply with quote

xxx

Last edited by Robby on Sun Dec 11, 2011 1:42 am; edited 1 time in total
Back to top
View user's profile Send private message
RPG
Super User
Super User


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

PostPosted: Wed Jun 18, 2008 12:11 pm    Post subject: Reply with quote

Hello Robby

I did not see any reason for making one sub. I would only move a frame. And that needs only two parameter. I did use three parameters, there was not so a clear reason to do for three parameters only it is nice to give the X and Y postion.

The two other subs. I use them only one time. If you use them and save the file it is stored.

But you are free to change it. How more you change it how better you understand. I make most of the time also changes. In that way I understand it better

As I can see you made one errors. In the way you change it.
1) I did worked with the with statement. You must out comment the "end with" in line 11

I hope you get it working

Romke
Back to top
View user's profile Send private message
Robby
OOo Advocate
OOo Advocate


Joined: 21 Sep 2004
Posts: 249

PostPosted: Wed Jun 18, 2008 8:37 pm    Post subject: Reply with quote

xxx

Last edited by Robby on Sun Dec 11, 2011 1:42 am; edited 1 time in total
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
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
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