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

Cnange Title

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
as1234
General User
General User


Joined: 30 Apr 2012
Posts: 12

PostPosted: Mon Apr 30, 2012 11:51 am    Post subject: Cnange Title Reply with quote

Hi !

I know how to change the title with a macro, but i don't know how to change the titl's name by change "NAME" in the dialogue ...

Sub Main
mytitle = "NAME"
docattr = thisComponent.getDocumentInfo()
docattr.Title = mytitle
thisComponent.CurrentController.Frame.Title = mytitle
End Sub

How bind "Name" with TextField in the dialog ? Embarassed
Back to top
View user's profile Send private message
RPG
Super User
Super User


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

PostPosted: Mon Apr 30, 2012 1:16 pm    Post subject: Reply with quote

Hello

Start study here:
http://wiki.services.openoffice.org/wiki/Documentation/BASIC_Guide/Dialogs

http://wiki.services.openoffice.org/wiki/Documentation/BASIC_Guide/Properties

I'm not you can change the title.
I suppose you want change the title of the dialog and for a document is:
Code:
Sub Main
thiscomponent.title="aap"
End Sub


Romke
_________________
OOo 3.4.5 on openSUSE 12.1
Use this forum : http://user.services.openoffice.org/en/forum
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 Macros and API 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