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

Creating own menu

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


Joined: 09 Feb 2005
Posts: 2
Location: Pune

PostPosted: Mon Feb 28, 2005 3:47 am    Post subject: Creating own menu Reply with quote

I am wan't to create own menu in a blank frame through C++...

How I can do this?
Back to top
View user's profile Send private message
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3211
Location: Troyes France

PostPosted: Mon Feb 28, 2005 9:03 am    Post subject: Reply with quote

I have not done that for the moment but DannyB has in OOoBasic. Perhaps that helps.
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3211
Location: Troyes France

PostPosted: Tue Mar 01, 2005 11:49 am    Post subject: Reply with quote

gap82 has helped me to create dialog at run time. He has send me a private mail to ask me to help on the subject. I have promise I will, but not before 2 days.
You can send him a private mail to ask where are his investigations ?
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3211
Location: Troyes France

PostPosted: Wed Mar 02, 2005 12:38 pm    Post subject: Reply with quote

... and read first DannyB post :
Playing with the AWT toolkit (in Basic)
http://www.oooforum.org/forum/viewtopic.phtml?t=8481
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
kschaudhari
Newbie
Newbie


Joined: 09 Feb 2005
Posts: 2
Location: Pune

PostPosted: Fri Mar 04, 2005 9:01 pm    Post subject: Reply with quote

hello Serge,
It helps me to add button but i am not able to include actin listner to that button
and not able to create menu......
Back to top
View user's profile Send private message
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3211
Location: Troyes France

PostPosted: Sat Mar 05, 2005 1:51 am    Post subject: Reply with quote

See my posts here :
managing UNO windows with C++
http://www.oooforum.org/forum/viewtopic.phtml?t=13710
where I give an example with ation listener and a button (done with gap82's help)
I have also put this example and other in my documents.
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3211
Location: Troyes France

PostPosted: Sat Mar 05, 2005 10:59 am    Post subject: Reply with quote

I have spent a while today to construc menus but without success. After reading documentation I have found :
http://api.openoffice.org/docs/DevelopersGuide/OfficeDev/OfficeDev.htm#1+1+3+5+2+XTopWindow
which explains the XMenuBar interface is deprecated !!!
I have to find an other way.
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
DannyB
Moderator
Moderator


Joined: 02 Apr 2003
Posts: 3991
Location: Lawrence, Kansas, USA

PostPosted: Sat Mar 05, 2005 11:41 am    Post subject: Reply with quote

SergeM wrote:
... and read first DannyB post :
Playing with the AWT toolkit (in Basic)
http://www.oooforum.org/forum/viewtopic.phtml?t=8481


In the referenced thread, I never did get a menu bar to work in a standalone frame/window.
_________________
Want to make OOo Drawings like the colored flower design to the left?
Back to top
View user's profile Send private message
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3211
Location: Troyes France

PostPosted: Mon Mar 07, 2005 10:15 am    Post subject: Reply with quote

Exacly, sorry for this mistake.
I have read your post very quickly and see something on menu and then believe it was an example.
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
Cybb20
Super User
Super User


Joined: 02 Mar 2004
Posts: 1569
Location: Frankfurt, Germany

PostPosted: Wed Mar 09, 2005 1:52 am    Post subject: Reply with quote

XMenuBar is deprecated as of now and probably will be deprecated in OOo 2.0 as well, as are the other non-working interfaces XMenu and XMenuListener.

Christian
_________________
- Knowledge is Power -
Back to top
View user's profile Send private message Send e-mail
manuguy
General User
General User


Joined: 25 Nov 2004
Posts: 38
Location: Massy - FRANCE

PostPosted: Thu Aug 03, 2006 2:15 am    Post subject: Reply with quote

Maybe the thread : "Modify Contextual Menu in C++ " may help.
It's for a contextual Menu, but principe is the same for any other Menu.

See URL :
http://www.oooforum.org/forum/viewtopic.phtml?t=40637

Regards.
Back to top
View user's profile Send private message
creativemadhan
Power User
Power User


Joined: 28 Jul 2006
Posts: 54
Location: Bangalore

PostPosted: Sun Aug 20, 2006 11:25 pm    Post subject: try addon Reply with quote

Hi hari,
Are u trying to create a new menu in the menu bar? if yes try to add it using addons, but if u are tring to add it through a c++ program iam having a example program in java convert it ot c++. if u need it i will send it through mail
_________________
Madhan Ponnusamy
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